3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array1 = array(1,2,3,4,5,6,7,8); $array2 = array('a','b','c','d','e','f','g'); array_splice($array1, 1,1,$array2); print_r ($array1);
Output for 4.3.0 - 7.1.0
Array ( [0] => 1 [1] => a [2] => b [3] => c [4] => d [5] => e [6] => f [7] => g [8] => 3 [9] => 4 [10] => 5 [11] => 6 [12] => 7 [13] => 8 )