3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php var_dump(array_shift([]));
Output for 5.4.0 - 5.6.25, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.0.10
Fatal error: Only variables can be passed by reference in /in/hMcXC on line 2
Process exited with code 255.
Output for 5.3.0 - 5.3.29
Parse error: syntax error, unexpected '[', expecting ')' in /in/hMcXC on line 2
Process exited with code 255.