3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array(1 => '5ive', 'jim' => 'bob', 4 => 5); echo array_shift(array_merge($array));
Output for 7.0.0 - 7.1.0
Notice: Only variables should be passed by reference in /in/6MCRB on line 5 5ive
Output for 5.5.0 - 5.6.28
Strict Standards: Only variables should be passed by reference in /in/6MCRB on line 5 5ive
Output for 4.3.0 - 5.0.4, 5.1.0 - 5.4.45
5ive
Output for 5.0.5
<br /> <b>Fatal error</b>: Only variables can be passed by reference in <b>/in/6MCRB</b> on line <b>5</b><br />
Process exited with code 255.