3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array( 2 => 'a', 1 => 'b', 0 => 'c', ); print_r(array_splice($a, 2));

preferences:
30.8 ms | 402 KiB | 5 Q