3v4l.org

run code in 300+ PHP versions simultaneously
<?php $wertA = array(1, 2, 3, 4, 5, 6); $wertA2 = array_slice ($wertA, 0, 3, true); $wertA3 = array_slice ($wertA, 3, null, true); var_dump($wertA2); var_dump($wertA3);

preferences:
61.81 ms | 402 KiB | 5 Q