3 ms·
Which PHP version does this implement? Doesn't seem to have lambda support :( call_user_func(function($what) { echo "hello $what\n"; }, "world"); Parse er
by hkolek 14y ago
Which PHP version does this implement? Doesn't seem to have lambda support :(
call_user_func(function($what) { echo "hello $what\n"; }, "world");
Parse error: Object [object Object] has no method 'Node_Expr_Closure' in /console.htm on line undefined
var_dump([1,2,3]);
works fine though so that must be php 5.4, no? But lack of lambdas makes me sad.
Nice work though.
- LinaLauneBaer 14y agoThe website indicates that lamdbas are supported: 'Any additional unconverted code that gets executed within the VM, such as eval or lambda functions will go through the same process before being executed.' Or did I miss anything?
- hkolek 14y agoYes you're right, but the code I posted above still doesn't work. It works fine with PHP 5.4 though. This also fails with the same error message: $fn = function() { echo 'foo'; }; But that's also perfectly valid PHP 5.4 code. Maybe I'm doing something wrong, idk.