3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $original = array( 'a','b','c','d','e','f','d' ); $inserted = array( 'x' ); $arr = array_splice( $original, 3, 0, $inserted ); print_r($arr);
Output for 4.3.0 - 7.1.0
Array ( )