3v4l.org

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

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
156.84 ms | 3350 KiB | 10 Q