3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(reset(array()));
Output for 5.3.0 - 5.6.30, hhvm-3.10.1, 7.0.0 - 7.1.12
Fatal error: Only variables can be passed by reference in /in/CNdJ4 on line 3
Process exited with code 255.
Output for hhvm-3.22.0
Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /in/CNdJ4:-1 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.19.2 - 3.21.3
Fatal error: Uncaught Error: Cannot pass parameter 1 by reference in /in/CNdJ4:3 Stack trace: #0 {main}
Process exited with code 255.
Output for hhvm-3.11.1 - 3.18.5
Fatal error: Uncaught Error: Only variables can be passed by reference in /in/CNdJ4:3 Stack trace: #0 {main}
Process exited with code 255.