3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $myArray = array(7=>1,2,3); $myArray[] = 4; $myArray[2] = 5; array_shift($myArray,6); print_r($myArray);
Output for 5.3.0 - 7.1.0
Warning: array_shift() expects exactly 1 parameter, 2 given in /in/u58qZ on line 9 Array ( [7] => 1 [8] => 2 [9] => 3 [10] => 4 [2] => 5 )
Output for 4.3.0 - 5.2.17
Warning: Wrong parameter count for array_shift() in /in/u58qZ on line 9 Array ( [7] => 1 [8] => 2 [9] => 3 [10] => 4 [2] => 5 )