3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $mich_kennt_man_nicht = "Hehehe"; $mich_kennt_man = "Ba dum - tss "; function ich_bin_aussen () use ( $mich_kennt_man ) { $ichBinInnen = function () use ( $mich_kennt_man_nicht, $mich_kennt_man ) { var_dump( $mich_kennt_man_nicht ); var_dump( $mich_kennt_man ); }; } $innenInstanz = ich_bin_au├čen(); $innenInstanz(); ?>
Output for 5.4.0 - 5.4.28
Parse error: syntax error, unexpected 'use' (T_USE), expecting '{' in /in/NHVN7 on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_USE, expecting '{' in /in/NHVN7 on line 5
Process exited with code 255.