3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($a) { return function($b) use($a) { return $a.$b; }; } $f = foo("hello "); var_dump( {foo("hello ")}("world") );
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected '{', expecting ')' in /in/4JnL9 on line 10
Process exited with code 255.