3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [1, 2, 3, 4, 5, 6, 7, 8, 9]; shuffle($list); foreach($list as $list_value){ echo array_rand($list_value, 3); } ?>

preferences:
11.97 ms | 408 KiB | 5 Q