3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { rand(); } $end = microtime(true) - $start; printf("%0.6F\n", $end); $start = microtime(true); for ($i = 0; $i < 10000000; $i++) { mt_rand(); } $end = microtime(true) - $start; printf("%0.6F\n", $end);
Output for 7.1.0
0.375173 -0.064167
Output for 7.0.14
0.327643 0.297631
Output for 7.0.6
0.246066 0.224257
Output for 7.0.5
0.249499 0.202901
Output for 7.0.4
0.240962 0.211841
Output for 7.0.3
0.250780 0.221215
Output for 7.0.2
0.216742 0.196401
Output for 7.0.1
0.233377 0.223958
Output for 7.0.0
0.222688 0.210281
Output for hhvm-3.12.0
1.162278
Process exited with code 137.
Output for hhvm-3.10.0
0.855567 0.870365
Output for 5.6.28
-0.362935 1.124343
Output for 5.6.21
0.543594 0.510668
Output for 5.6.20
0.513869 0.491212
Output for 5.6.19
0.523828 0.487976
Output for 5.6.18
0.511984 0.500699
Output for 5.6.17
0.543425 0.516741
Output for 5.6.16
0.531941 0.491686
Output for 5.6.15
0.488422 0.481997
Output for 5.6.14
0.515437 0.512455
Output for 5.6.13
0.526230 0.489540
Output for 5.6.12
0.514721 0.491673
Output for 5.6.11
0.522791 0.505001
Output for 5.6.10
0.525285 0.491380
Output for 5.6.9
0.555289 0.498042
Output for 5.6.8
0.524524 0.484760
Output for 5.6.7
0.513279 0.450675
Output for 5.5.35
0.490559 0.423468
Output for 5.5.34
0.523162 0.515347
Output for 5.5.33
0.578785 0.512453
Output for 5.5.32
0.510030 0.487148
Output for 5.5.31
0.507982 0.480610
Output for 5.5.30
0.498225 0.481095
Output for 5.5.29
0.494642 0.483477
Output for 5.5.28
0.502511 0.488548
Output for 5.5.27
0.489201 0.474632
Output for 5.5.26
0.513187 0.486689
Output for 5.5.25
0.544626 0.482343
Output for 5.5.24
0.574331 0.532775
Output for 5.4.45
0.619116 0.723953
Output for 5.4.44
0.993856 0.781616
Output for 5.4.43
0.767518 0.608548
Output for 5.4.42
0.734779 0.794395
Output for 5.4.41
0.846777 0.784193
Output for 5.4.40
0.784259 0.793656
Output for 5.4.39
0.782393 0.802005
Output for 5.4.38
0.958714 0.827897
Output for 5.4.37
1.087976 0.833385
Output for 5.4.36
0.913301 1.030011
Output for 5.4.35
1.199012 1.111983
Output for 5.4.34
1.048061 1.172081
Output for 5.4.32
0.564225 0.623035
Output for 5.4.31
0.559172 0.595481
Output for 5.4.30
0.579206 0.583436
Output for 5.4.29
0.572986 0.677122
Output for 5.4.28
1.306178
Process exited with code 137.
Output for 5.4.27
0.848276 1.152969
Output for 5.4.26
1.216199
Process exited with code 137.
Output for 5.4.25
1.522113
Process exited with code 137.
Output for 5.4.24
1.541981
Process exited with code 137.
Output for 5.4.23
1.304340
Process exited with code 137.
Output for 5.4.22
0.869467 1.275216
Output for 5.4.21
0.912013 0.932719
Output for 5.4.20
1.804303
Process exited with code 137.
Output for 5.4.19
1.660383
Process exited with code 137.
Output for 5.4.18
1.641385
Process exited with code 137.
Output for 5.4.17
1.357095
Process exited with code 137.
Output for 5.4.16
1.238148
Process exited with code 137.
Output for 5.4.15
1.054916 1.061219
Output for 5.4.14
0.947101 1.009864
Output for 5.4.13
1.489373
Process exited with code 137.
Output for 5.4.12
1.221710 0.921434
Output for 5.4.11
2.053318
Process exited with code 137.
Output for 5.4.10
0.919696 0.835938
Output for 5.4.9
1.455203
Process exited with code 137.
Output for 5.4.8
1.844730
Process exited with code 137.
Output for 5.4.7
1.136221
Process exited with code 137.
Output for 5.4.6
1.639875
Process exited with code 137.
Output for 5.4.5
1.158847 1.118835
Output for 5.4.4
0.988307 1.061261
Output for 5.4.3
0.996774 0.939274
Output for 5.4.2
1.261210
Process exited with code 137.
Output for 5.4.1
1.432090
Process exited with code 137.
Output for 5.4.0
1.005421
Process exited with code 137.
Output for 5.3.29
0.729771 0.720041
Output for 5.3.28
1.133281 1.119447
Output for 5.3.27
1.671919
Process exited with code 137.
Output for 5.3.26
1.272444
Process exited with code 137.
Output for 5.3.25
1.722788
Process exited with code 137.
Output for 5.3.24
1.360871
Process exited with code 137.
Output for 5.3.23
1.158402 1.212716
Output for 5.3.22
1.726312
Process exited with code 137.
Output for 5.3.21
1.285178
Process exited with code 137.
Output for 5.3.20
1.635136
Process exited with code 137.
Output for 5.3.19
1.331169 1.084948
Output for 5.3.18
0.820372 1.236739
Output for 5.3.17
0.788272 0.993416
Output for 5.3.16
1.148267 1.056539
Output for 5.3.15
1.031698 1.005145
Output for 5.3.14
1.144202 1.218201
Output for 5.3.13
1.457847
Process exited with code 137.
Output for 5.3.12
1.117617
Process exited with code 137.
Output for 5.3.11
1.293860
Process exited with code 137.
Output for 5.3.10
1.784294
Process exited with code 137.
Output for 5.3.9
1.768125
Process exited with code 137.
Output for 5.3.8
1.674161
Process exited with code 137.
Output for 5.3.7
1.373556
Process exited with code 137.
Output for 5.3.6
1.493026
Process exited with code 137.
Output for 5.3.5
1.491504
Process exited with code 137.
Output for 5.3.4
2.033305
Process exited with code 137.
Output for 5.3.3
1.514594
Process exited with code 137.
Output for 5.3.2
1.426717
Process exited with code 137.
Output for 5.3.1
1.377794
Process exited with code 137.
Output for 5.3.0
1.360840
Process exited with code 137.
Output for 5.2.17
1.655057
Process exited with code 137.
Output for 5.2.16
1.350936
Process exited with code 137.
Output for 5.2.15
1.426065
Process exited with code 137.
Output for 5.2.14
1.746278
Process exited with code 137.
Output for 5.2.13
1.892122
Process exited with code 137.
Output for 5.2.12
1.707220
Process exited with code 137.
Output for 5.2.11
2.136836
Process exited with code 137.
Output for 5.2.10
1.033422
Process exited with code 137.
Output for 5.2.9
1.357478
Process exited with code 137.
Output for 5.2.8
0.983870
Process exited with code 137.
Output for 5.2.7
1.306172
Process exited with code 137.
Output for 5.2.6
1.346397
Process exited with code 137.
Output for 5.2.5
1.437735
Process exited with code 137.
Output for 5.2.4
1.143189
Process exited with code 137.
Output for 5.2.3
1.618661
Process exited with code 137.
Output for 5.2.2
1.553696
Process exited with code 137.
Output for 5.2.1
1.611348
Process exited with code 137.
Output for 5.2.0
1.653002
Process exited with code 137.
Output for 5.1.6
1.707302
Process exited with code 137.
Output for 5.1.5
1.834343
Process exited with code 137.
Output for 5.1.4
1.198391
Process exited with code 137.
Output for 5.1.3
0.975652 0.890084
Output for 5.1.2
1.425094
Process exited with code 137.
Output for 5.1.1
1.625177
Process exited with code 137.
Output for 5.1.0
0.908345 0.910636
Output for 5.0.5
1.904844
Process exited with code 137.
Output for 5.0.4
1.893120
Process exited with code 137.
Output for 4.3.0 - 4.3.11, 4.4.3 - 5.0.3

Process exited with code 137.
Output for 4.4.2
-0.083706
Process exited with code 137.
Output for 4.4.1
-0.275230
Process exited with code 137.
Output for 4.4.0
-0.235075
Process exited with code 137.