3v4l.org

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

preferences:
15.27 ms | 405 KiB | 5 Q