3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function make_seed() { list($usec, $sec) = explode(' ', microtime()); return (float) $sec + ((float) $usec * 100000); } mt_srand(make_seed()); $randval = mt_rand()%5000; echo $randval ?>
Output for 7.1.0
142
Output for 7.0.14
2939
Output for 7.0.10
920
Output for 7.0.9
1725
Output for 5.4.39, 7.0.7 - 7.0.8
4139
Output for 7.0.6
3973
Output for 7.0.5
4178
Output for 7.0.4
3797
Output for 5.4.44, 5.5.25, 5.6.14, 7.0.3
1869
Output for 5.4.8, 5.6.25, 7.0.2
2930
Output for 7.0.1
350
Output for 5.4.17, 7.0.0
705
Output for 5.6.28
2166
Output for 5.6.24
4854
Output for 5.6.23
313
Output for 5.5.38, 5.6.22
2597
Output for 5.6.20 - 5.6.21
3255
Output for 5.6.19
4968
Output for 5.6.18
781
Output for 5.6.17
4230
Output for 5.6.16
4903
Output for 5.6.15
4595
Output for 5.6.13
3848
Output for 5.6.12
977
Output for 5.6.11
928
Output for 5.4.25, 5.6.10
2324
Output for 5.6.9
3540
Output for 5.6.8
546
Output for 5.6.7
4648
Output for 5.6.6
4144
Output for 5.6.5
2089
Output for 5.6.4
1613
Output for 5.5.9, 5.6.3
1900
Output for 5.4.16, 5.6.2
275
Output for 5.4.34, 5.6.1
1013
Output for 5.4.23, 5.5.36, 5.6.0
4006
Output for 5.5.37
823
Output for 5.5.35
1807
Output for 5.5.34
138
Output for 5.5.33
2739
Output for 5.4.14, 5.5.32
2350
Output for 5.5.31
1714
Output for 5.5.30
1155
Output for 5.5.29
875
Output for 5.4.43, 5.5.28
3682
Output for 5.5.27
4670
Output for 5.5.26
3770
Output for 5.5.6, 5.5.24
2896
Output for 5.5.23
377
Output for 5.5.12, 5.5.21 - 5.5.22
2023
Output for 5.5.20
2239
Output for 5.5.19
1827
Output for 5.5.18
2116
Output for 5.5.16
4822
Output for 5.5.15
2349
Output for 5.4.35, 5.5.14
2343
Output for 5.5.13
3004
Output for 5.5.11
628
Output for 5.5.10
1587
Output for 5.5.2, 5.5.8
446
Output for 5.5.7
3292
Output for 5.5.5
3355
Output for 5.5.4
4651
Output for 5.5.3
4551
Output for 5.5.1
2844
Output for 5.5.0
1072
Output for 5.4.45
3104
Output for 5.4.42
2689
Output for 5.4.41
347
Output for 5.4.40
2248
Output for 5.4.38
3501
Output for 5.3.3, 5.4.37
1640
Output for 5.4.36
319
Output for 5.4.32
1914
Output for 5.4.31
1623
Output for 5.4.19, 5.4.30
2298
Output for 5.4.29
367
Output for 5.4.28
2753
Output for 5.3.4, 5.3.10, 5.4.27
3413
Output for 5.4.26
3896
Output for 5.4.24
2412
Output for 5.4.22
1134
Output for 5.4.21
3859
Output for 5.4.20
2461
Output for 5.4.5, 5.4.18
41
Output for 5.4.15
1189
Output for 5.4.13
815
Output for 5.4.12
4158
Output for 5.3.13, 5.4.11
4547
Output for 5.4.10
1875
Output for 5.4.9
3666
Output for 5.4.7
1455
Output for 5.2.8, 5.3.20, 5.4.6
1102
Output for 5.3.29, 5.4.4
418
Output for 5.2.17, 5.4.3
2065
Output for 5.4.2
3625
Output for 5.4.1
2213
Output for 5.4.0
3835
Output for 5.3.25, 5.3.28
1825
Output for 5.3.27
2351
Output for 5.3.26
596
Output for 5.3.24
4623
Output for 5.3.23
4797
Output for 5.3.22
3163
Output for 5.3.21
999
Output for 5.3.7, 5.3.19
4013
Output for 5.3.18
1385
Output for 5.3.17
825
Output for 5.3.16
4169
Output for 5.2.2, 5.3.14 - 5.3.15
3858
Output for 5.3.12
3817
Output for 5.3.11
646
Output for 5.2.9, 5.3.9
2147
Output for 5.3.8
2392
Output for 5.2.11, 5.3.6
3155
Output for 5.3.5
4386
Output for 5.3.2
3186
Output for 5.3.1
4364
Output for 5.3.0
2763
Output for 5.2.16
2815
Output for 5.2.4, 5.2.15
597
Output for 5.2.14
4083
Output for 5.2.13
4150
Output for 5.2.12
1514
Output for 5.2.10
3173
Output for 5.2.7
3014
Output for 5.2.6
4875
Output for 5.2.5
4316
Output for 5.2.3
703
Output for 5.2.1
4389
Output for 5.2.0
2863
Output for 5.1.6
4800
Output for 5.1.3, 5.1.5
1910
Output for 5.1.0, 5.1.4
4932
Output for 5.1.2
913
Output for 5.1.1
3678
Output for 5.0.5
2279
Output for 5.0.4
4823
Output for 5.0.3
1169
Output for 5.0.2
239
Output for 5.0.1
4455
Output for 5.0.0
2125
Output for 4.3.8, 4.3.10, 4.4.2, 4.4.4, 4.4.8 - 4.4.9
1672
Output for 4.4.7
1145
Output for 4.3.0 - 4.3.1, 4.3.3, 4.4.1, 4.4.5 - 4.4.6
1797
Output for 4.3.4, 4.3.7, 4.4.3
2174
Output for 4.3.5, 4.3.9, 4.4.0
1693
Output for 4.3.2, 4.3.6, 4.3.11
2106