3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array('first', 'second', 'third'); array_splice($array, 0, 0, array('another')); var_dump($array);
Output for 4.3.0 - 7.1.0
array(4) { [0]=> string(7) "another" [1]=> string(5) "first" [2]=> string(6) "second" [3]=> string(5) "third" }