3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function d(){ return array('a', 'b', 'c'); } var_dump(reset(d()));
Output for 7.0.0 - 7.2.11
Notice: Only variables should be passed by reference in /in/fbBM4 on line 6 string(1) "a"
Output for 4.3.0 - 5.0.4, hhvm-3.10.1 - 3.11.1, hhvm-3.13.2 - 3.22.0
string(1) "a"
Output for hhvm-3.12.14

Process exited with code 137.
Output for 5.1.0 - 5.6.38
Strict Standards: Only variables should be passed by reference in /in/fbBM4 on line 6 string(1) "a"
Output for 5.0.5
Fatal error: Only variables can be passed by reference in /in/fbBM4 on line 6
Process exited with code 255.