- 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.
<?php
function foo($a) {
return function($b) use($a) {
return $a.$b;
};
}
$f = foo("hello ");
var_dump( {foo("hello ")}("world") );