3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(array_splice(array("red", "green", "blue", "yellow"), 2));

preferences:
45.09 ms | 405 KiB | 5 Q