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 < 5 ; $i++){ print $list[$i]."/"; } ?>
Output for 8.1.9
8/4/2/5/3/
Output for 8.1.8
8/9/4/5/2/
Output for 8.1.7
6/5/1/9/4/
Output for 8.1.6
3/6/2/9/7/
Output for 8.1.5
4/3/5/8/6/
Output for 8.1.4
5/2/1/4/8/
Output for 8.1.3
2/1/9/7/6/
Output for 8.1.2
4/7/9/6/8/
Output for 8.1.1
8/4/2/1/9/
Output for 8.1.0
2/3/7/9/8/
Output for 8.0.22
7/2/8/6/4/
Output for 8.0.21
3/2/6/1/4/
Output for 8.0.20
2/1/7/9/4/
Output for 8.0.19
4/2/3/7/1/
Output for 8.0.18
3/2/7/9/6/
Output for 8.0.17
5/3/8/4/1/
Output for 8.0.16
2/7/3/5/1/
Output for 8.0.15
8/4/9/5/3/
Output for 8.0.14
1/2/7/6/4/
Output for 8.0.13
8/1/5/9/6/
Output for 8.0.12
2/8/6/7/1/
Output for 8.0.11
4/9/5/1/7/
Output for 8.0.10
9/2/1/6/3/
Output for 8.0.9
6/1/2/4/3/
Output for 8.0.8
7/3/8/2/6/
Output for 8.0.7
3/2/5/6/7/
Output for 8.0.6
8/7/1/6/9/
Output for 8.0.5
9/4/8/6/1/
Output for 8.0.3
9/1/6/5/2/
Output for 8.0.2
5/4/1/6/7/
Output for 8.0.1
8/5/9/6/7/
Output for 7.4.30
6/9/1/5/7/
Output for 7.4.29
9/4/8/1/6/
Output for 7.4.28
8/6/2/4/9/
Output for 7.4.27
3/9/6/1/5/
Output for 7.4.26
2/6/8/9/3/
Output for 7.4.25
1/5/9/3/6/
Output for 7.4.24
8/5/3/6/7/
Output for 7.4.23
9/2/5/1/6/
Output for 7.4.22
8/9/4/1/5/
Output for 7.4.21
9/2/8/7/3/
Output for 7.4.20
5/7/1/2/8/
Output for 7.4.19
4/6/5/3/2/
Output for 7.4.18
1/8/9/3/5/
Output for 7.4.16
2/7/5/6/9/
Output for 7.4.15
3/4/9/2/8/
Output for 7.4.14
9/4/3/6/7/
Output for 7.4.13
3/1/5/7/2/
Output for 7.4.12
8/4/6/3/9/
Output for 7.4.11
2/6/5/1/4/
Output for 7.4.10
3/8/2/6/5/
Output for 7.4.9
4/9/7/5/1/
Output for 7.4.8
2/1/8/7/9/
Output for 7.4.7
6/9/5/8/7/
Output for 7.4.6
9/5/7/4/1/
Output for 7.4.5
3/2/1/6/4/
Output for 7.4.4
3/1/2/5/6/
Output for 7.4.3
2/3/1/9/4/
Output for 7.4.2
3/1/7/9/4/
Output for 7.4.1
1/5/8/2/7/
Output for 7.4.0
3/6/2/7/1/

preferences:
20.64 ms | 489 KiB | 5 Q