3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $input = array("red", "green", "blue", "yellow"); array_splice($input, 3); var_dump($input);
Output for 4.3.0 - 7.2.0
array(3) { [0]=> string(3) "red" [1]=> string(5) "green" [2]=> string(4) "blue" }