3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $foo = "bar"; $outer = function () use ( $foo ) { $inner = function () use ( $foo ) { var_dump( $foo ); }; $inner(); } $outer(); ?>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected '$outer' (T_VARIABLE) in /in/SgrZ4 on line 13
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_VARIABLE in /in/SgrZ4 on line 13
Process exited with code 255.