3v4l.org

run code in 300+ PHP versions simultaneously
<?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.3.28, 5.4.0 - 5.4.29
Parse error: syntax error, unexpected '{', expecting ')' in /in/4JnL9 on line 10
Process exited with code 255.

preferences:
199.99 ms | 1395 KiB | 66 Q