3v4l.org

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