3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $Foo = call_user_func(function() { $a = function() { return 'hello'; }; $b = function() { return 'world'; }; return (object)array( 'a' => $a, 'b' => $b, ); }); echo implode(' ', array(($Foo->a)(), ($Foo->b)()));
based on 5VYss
Output for 7.0.0 - 7.2.0
hello world
Output for 5.4.0 - 5.6.28
Parse error: syntax error, unexpected '(', expecting ')' in /in/p0B1H on line 18
Process exited with code 255.