3v4l.org

run code in 300+ PHP versions simultaneously
<?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.

preferences:
189.98 ms | 1399 KiB | 65 Q