3v4l.org

run code in 300+ PHP versions simultaneously
<?php $list = [1, 2, 3, 4, 5, 6, 7, 8, 9]; shuffle($list); for ($i = 0 ; $i < 3 ; $i++){ print $list[$i]; } ?>
Output for 8.1.9
289
Output for 8.1.8
175
Output for 8.1.7
469
Output for 8.0.5, 8.1.6
651
Output for 8.1.5
497
Output for 8.1.4
126
Output for 8.1.3
856
Output for 8.1.2
619
Output for 8.1.1
148
Output for 8.1.0
679
Output for 8.0.22
485
Output for 8.0.21
438
Output for 8.0.20
932
Output for 8.0.19
498
Output for 8.0.18
817
Output for 8.0.17
196
Output for 8.0.16
935
Output for 8.0.15
956
Output for 8.0.14
431
Output for 8.0.13
312
Output for 8.0.12
681
Output for 8.0.11
297
Output for 8.0.10
381
Output for 7.4.0, 8.0.9
894
Output for 8.0.8
794
Output for 8.0.7
215
Output for 8.0.6
732
Output for 8.0.3
156
Output for 8.0.2
863
Output for 8.0.1
439
Output for 7.4.30
534
Output for 7.4.29
859
Output for 7.4.28
528
Output for 7.4.27
351
Output for 7.4.26
264
Output for 7.4.25
615
Output for 7.4.24
183
Output for 7.4.23
637
Output for 7.4.22
862
Output for 7.4.21
562
Output for 7.4.20
249
Output for 7.4.19
359
Output for 7.4.18
179
Output for 7.4.16
832
Output for 7.4.15
928
Output for 7.4.14
742
Output for 7.4.13
638
Output for 7.4.12
586
Output for 7.4.11
416
Output for 7.4.10
318
Output for 7.4.9
123
Output for 7.4.8
843
Output for 7.4.7
273
Output for 7.4.6
895
Output for 7.4.5
631
Output for 7.4.4
754
Output for 7.4.3
917
Output for 7.4.2
649
Output for 7.4.1
983

preferences:
31.6 ms | 486 KiB | 5 Q