3v4l.org

run code in 300+ PHP versions simultaneously
<?php $kat_list=array(1,2,3,4); shuffle($kat_list); // shuffle list $count=3; for($i=0; $i<$count; ++$i) { // get the first N items of the shuffled list printf("%d ", $kat_list[$i]); }

This is an error 500

Value for `_results` contains invalid data `array`


preferences:
148.02 ms | 1317 KiB | 12 Q