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 $list_value; } ?>
Output for 8.1.9
548172963
Output for 8.1.8
564129738
Output for 8.1.7
683147295
Output for 8.1.6
958321764
Output for 8.1.5
617954832
Output for 8.1.4
478195632
Output for 8.1.3
429817356
Output for 8.1.2
235681497
Output for 8.1.1
541982763
Output for 8.1.0
681279453
Output for 8.0.22
158642739
Output for 8.0.21
718342569
Output for 8.0.20
851743692
Output for 8.0.19
869437152
Output for 8.0.18
976328541
Output for 8.0.17
426578931
Output for 8.0.16
368715294
Output for 8.0.15
123589647
Output for 8.0.14
639247581
Output for 8.0.13
215964783
Output for 8.0.12
631798425
Output for 8.0.11
159687324
Output for 8.0.10
827431956
Output for 8.0.9
687325491
Output for 8.0.8
321968754
Output for 8.0.7
347926815
Output for 8.0.6
573624981
Output for 8.0.5
721384965
Output for 8.0.3
273196584
Output for 8.0.2
568917423
Output for 8.0.1
362574981
Output for 7.4.30
849653127
Output for 7.4.29
483259671
Output for 7.4.28
891674325
Output for 7.4.27
483196257
Output for 7.4.26
675921483
Output for 7.4.25
783954261
Output for 7.4.24
698275134
Output for 7.4.23
925831467
Output for 7.4.22
179235684
Output for 7.4.21
314859627
Output for 7.4.20
769823541
Output for 7.4.19
784219635
Output for 7.4.18
678123945
Output for 7.4.16
346971582
Output for 7.4.15
932685714
Output for 7.4.14
287613594
Output for 7.4.13
194756238
Output for 7.4.12
528134976
Output for 7.4.11
814563729
Output for 7.4.10
842167953
Output for 7.4.9
873649125
Output for 7.4.8
136927584
Output for 7.4.7
285367491
Output for 7.4.6
589463172
Output for 7.4.5
647851239
Output for 7.4.4
651832974
Output for 7.4.3
457186932
Output for 7.4.2
827961435
Output for 7.4.1
687412539
Output for 7.4.0
612374895

preferences:
25.22 ms | 489 KiB | 5 Q