3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $listallfriendsarray = [1,2,3,4,5,6,7]; $listalreadydisplayed = [1,3,5,6]; array_splice($listallfriendsarray,0,count($listalreadydisplayed),$listalreadydisplayed); print_r($listallfriendsarray);
Output for 5.5.0 - 7.3.0
Array ( [0] => 1 [1] => 3 [2] => 5 [3] => 6 [4] => 5 [5] => 6 [6] => 7 )