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

preferences:
18.21 ms | 480 KiB | 5 Q