3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = "a"; $b = "b"; $c = function ($param) use ($a, $b) { return $a . " " . $b . " " . $param; } var_dump($c("ok"));
Output for 5.4.0 - 5.4.26
Parse error: syntax error, unexpected 'var_dump' (T_STRING) in /in/O4928 on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.28
Parse error: syntax error, unexpected T_STRING in /in/O4928 on line 2
Process exited with code 255.

preferences:
189.58 ms | 1386 KiB | 63 Q