3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = function() { echo "hello"; } $var();
Output for 5.4.0 - 5.4.7
Parse error: syntax error, unexpected '$var' (T_VARIABLE) in /in/EmifD on line 3
Process exited with code 255.
Output for 5.3.0 - 5.3.17
Parse error: syntax error, unexpected T_VARIABLE in /in/EmifD on line 3
Process exited with code 255.

preferences:
166.09 ms | 1399 KiB | 33 Q