3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $a = rand ( 1000 , 9999 ); echo $a;
based on LumGv
Output for 7.2.1
2473
Output for 7.2.0
5731
Output for 7.1.13
4435
Output for 7.1.12
4075
Output for 7.1.11
2395
Output for 7.1.10
4563
Output for 7.1.9
4920
Output for 7.1.8
5248
Output for 7.1.7
6774
Output for 7.1.6
3702
Output for 7.1.5
2461
Output for 7.1.4
2217
Output for 5.6.6, 7.1.3
3606
Output for 7.1.2
7550
Output for 7.1.1
7263
Output for 7.1.0
9297
Output for 7.0.27
1980
Output for 7.0.26
1917
Output for 7.0.25
5516
Output for 7.0.24
1356
Output for 7.0.23
5621
Output for 7.0.22
8389
Output for 7.0.21
9147
Output for 7.0.20
5379
Output for 7.0.19
8369
Output for 7.0.18
9873
Output for 7.0.17
2163
Output for 7.0.16
7120
Output for 7.0.15
7059
Output for 7.0.14
4064
Output for 7.0.13
7135
Output for 7.0.12
4654
Output for 7.0.11
9564
Output for 7.0.10
1963
Output for 7.0.9
6886
Output for 7.0.8
6610
Output for 7.0.7
7369
Output for 7.0.6
2493
Output for 5.6.16, 7.0.5
4866
Output for 7.0.4
8007
Output for 7.0.3
9732
Output for 5.6.20, 7.0.2
1052
Output for 7.0.1
4473
Output for 7.0.0
6039
Output for hhvm-3.22.0
6349
Output for hhvm-3.21.3
6076
Output for hhvm-3.18.5
2071
Output for 5.6.30
9405
Output for 5.6.29
1910
Output for 5.6.28
8468
Output for 5.6.27
6161
Output for 5.6.26
6246
Output for 5.6.25
9231
Output for 5.6.24
2872
Output for 5.6.23
2121
Output for 5.6.22
3244
Output for 5.6.21
5385
Output for 5.6.19
2824
Output for 5.6.18
6864
Output for 5.6.17
4683
Output for 5.6.15
9728
Output for 5.6.14
5025
Output for 5.6.13
7373
Output for 5.6.12
7603
Output for 5.6.11
2398
Output for 5.6.10
4388
Output for 5.6.9
3030
Output for 5.6.8
5739
Output for 5.6.7
7900
Output for 5.6.5
6307
Output for 5.6.4
8185
Output for 5.6.3
9920
Output for 5.6.2
6752
Output for 5.6.1
6573
Output for 5.6.0
4445