3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php error_reporting(0); $i = 1000; while($i--) { $array = range(1000, 1); $a = array_shift(array_slice($array, 0, 1)); } echo $a;
Output for 4.3.0 - 5.0.4, 5.1.0 - 7.1.0
1000
Output for 5.0.5

Process exited with code 255.