3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = microtime(); for($i=0; $i < 1000; $i++) { rand(1,9999999); } echo $time = (microtime()-$time); $time = microtime(); for($i=0; $i < 1000; $i++) { mt_rand(1,9999999); } echo $time = (microtime()-$time);
based on CbAlM
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/G8rrR on line 7 Notice: A non well formed numeric value encountered in /in/G8rrR on line 7 0.00013 Notice: A non well formed numeric value encountered in /in/G8rrR on line 13 Notice: A non well formed numeric value encountered in /in/G8rrR on line 13 0.000127
Output for 7.0.14
0.0001119.5E-5
Output for 7.0.6
9.2999999999954E-57.8000000000022E-5
Output for 7.0.5
0.000114999999999989.7000000000014E-5
Output for 7.0.4
0.000100000000000028.4000000000001E-5
Output for 7.0.3
6.5000000000093E-55.299999999997E-5
Output for 7.0.2
6.2000000000006E-56.0000000000004E-5
Output for 7.0.1
0.000124000000000017.899999999994E-5
Output for 7.0.0
9.0999999999952E-57.5999999999965E-5
Output for hhvm-3.12.0
0.0001760.000118
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.6.28
0.0002590.000245
Output for 5.6.21
0.0001660.000166
Output for 5.6.20
0.000143999999999920.00012999999999996
Output for 5.6.19
0.000124000000000010.00011000000000005
Output for 5.6.18
0.000129999999999960.00011300000000003
Output for 5.6.17
0.0001420.00012
Output for 5.6.16
0.0001270.000127
Output for 5.6.15
0.000147999999999930.00013200000000002
Output for 5.6.14
0.000192000000000030.00017800000000001
Output for 5.6.13
0.000192000000000030.000195
Output for 5.6.12
0.000163999999999940.00014899999999995
Output for 5.6.11
0.000202999999999950.00018599999999991
Output for 5.6.10
0.000149000000000070.00014999999999998
Output for 5.6.9
0.000190.000192
Output for 5.6.8
0.000176999999999980.00014500000000006
Output for 5.5.35
0.000203999999999980.00018399999999996
Output for 5.5.34
0.000198999999999950.00019599999999997
Output for 5.5.33
0.000130000000000070.00012600000000007
Output for 5.5.32
0.000206000000000010.000123
Output for 5.5.31
0.000183999999999990.000167
Output for 5.5.30
0.000186999999999990.00018199999999999
Output for 5.5.29
0.0001390.00012500000000004
Output for 5.5.28
0.0002820.00035000000000007
Output for 5.5.27
0.000128000000000020.000113
Output for 5.5.26
0.000195000000000060.00016700000000003
Output for 5.5.25
0.000272999999999970.00027100000000002
Output for 5.5.24
0.000356000000000020.00032300000000002
Output for 5.4.45
0.000264999999999990.00023399999999998
Output for 5.4.44
0.000263000000000010.00021700000000002
Output for 5.4.43
0.0002260.00018599999999999
Output for 5.4.42
0.000209999999999990.00026299999999996
Output for 5.4.41
0.000245999999999970.000193
Output for 5.4.40
0.000211999999999990.00018600000000002
Output for 5.4.39
0.000206000000000040.00020799999999999
Output for 5.4.38
0.000208999999999990.00025
Output for 5.4.37
0.000211999999999990.00025400000000009
Output for 5.4.36
0.000213000000000020.000247
Output for 5.4.35
0.0002170.000249
Output for 5.4.34
0.000207999999999990.00019800000000003
Output for 5.4.32
0.000163000000000020.00014799999999998
Output for 5.4.31
0.000157000000000020.00016900000000003
Output for 5.4.30
0.000172999999999980.00014399999999998
Output for 5.4.29
0.000167000000000030.00014200000000003
Output for 5.4.28
0.000155999999999930.00015900000000002
Output for 5.4.27
0.000145000000000060.00013399999999997
Output for 5.4.26
0.000164000000000050.00014999999999998
Output for 5.4.25
0.000148999999999950.0001270000000001
Output for 5.4.24
0.000152000000000040.00015399999999999
Output for 5.4.23
0.000152000000000040.00013399999999997
Output for 5.4.22
0.000261000000000070.00027199999999994
Output for 5.4.21
0.000184000000000070.00017
Output for 5.4.20
0.000174000000000010.000139
Output for 5.4.19
0.000161000000000080.00013200000000002
Output for 5.4.18
0.0001520.000129
Output for 5.4.17
0.0001660.000229
Output for 5.4.16
0.0001520.00014500000000001
Output for 5.4.15
0.000185999999999990.00013100000000002
Output for 5.4.14
0.0001630.000137
Output for 5.4.13
0.000154000000000020.000164
Output for 5.4.12
0.000157000000000020.000141
Output for 5.4.11
0.000183000000000040.00015899999999996
Output for 5.4.10
0.000160000000000050.000164
Output for 5.4.9
0.000163000000000020.000166
Output for 5.4.8
0.0001620.000139
Output for 5.4.7
0.0001620.00013799999999997
Output for 5.4.6
0.000272999999999970.00023799999999996
Output for 5.4.5
0.000267999999999930.00023499999999999
Output for 5.4.4
0.000176999999999980.00017699999999998
Output for 5.4.3
0.000163000000000020.00017899999999993
Output for 5.4.2
0.000175000000000040.000166
Output for 5.4.1
0.000260999999999960.00030100000000011
Output for 5.4.0
0.000211999999999990.00019500000000006
Output for 5.3.29
0.000180999999999990.000162
Output for 5.3.28
0.000186000000000020.00015999999999994
Output for 5.3.27
0.0001660.00015000000000009
Output for 5.3.26
0.0001790.00021
Output for 5.3.25
0.0001690.000207
Output for 5.3.24
0.000174999999999980.000171
Output for 5.3.23
0.000294000000000020.000253
Output for 5.3.22
0.000188999999999990.000198
Output for 5.3.21
0.000203999999999980.00016500000000003
Output for 5.3.20
0.000188999999999990.00017499999999998
Output for 5.3.19
0.000180000000000010.00031000000000003
Output for 5.3.18
0.000203000000000010.00020700000000001
Output for 5.3.17
0.000175999999999950.00024299999999999
Output for 5.3.16
0.000183999999999960.00017400000000001
Output for 5.3.15
0.000209000000000010.00018400000000007
Output for 5.3.14
0.000199999999999980.00020200000000004
Output for 5.3.13
0.000178999999999930.00022800000000001
Output for 5.3.12
0.000182000000000020.00019800000000003
Output for 5.3.11
0.000210999999999960.00019199999999997
Output for 5.3.10
0.000241000000000050.00019999999999998
Output for 5.3.9
0.000210999999999960.00017400000000001
Output for 5.3.8
0.000178999999999930.00019900000000006
Output for 5.3.7
0.000187999999999970.00016000000000005
Output for 5.3.6
0.000236000000000010.00017699999999998
Output for 5.3.5
0.0001960.000222
Output for 5.3.4
0.000297000000000010.00021400000000001
Output for 5.3.3
0.000216000000000020.00018899999999999
Output for 5.3.2
0.0001930.00017200000000001
Output for 5.3.1
0.0001950.00017600000000001
Output for 5.3.0
0.000203000000000010.000164
Output for 5.2.17
0.000215999999999990.00017699999999998
Output for 5.2.16
0.000182000000000020.00023000000000001
Output for 5.2.15
0.000182000000000020.00018800000000002
Output for 5.2.14
0.000211000000000020.00017899999999998
Output for 5.2.13
0.000183999999999960.00019600000000003
Output for 5.2.12
0.000180999999999990.000166
Output for 5.2.11
0.000182000000000020.00019899999999995
Output for 5.2.10
0.000179000000000040.00019399999999992
Output for 5.2.9
0.000180999999999990.000193
Output for 5.2.8
0.000205000000000010.00018899999999999
Output for 5.2.7
0.0001930.00016499999999997
Output for 5.2.6
0.000187000000000050.00017099999999992
Output for 5.2.5
0.000211999999999990.00017400000000001
Output for 5.2.4
0.0002240.00018200000000002
Output for 5.2.3
0.000187999999999970.000247
Output for 5.2.2
0.000232000000000010.0001739999999999
Output for 5.2.1
0.000187000000000050.00023899999999999
Output for 5.2.0
0.000186000000000020.0001779999999999
Output for 5.1.6
0.000178000000000010.00016799999999995
Output for 5.1.5
0.0001890.000159
Output for 5.1.4
0.0001830.000159
Output for 5.1.3
0.0001950.000156
Output for 5.1.2
0.000174999999999990.000176
Output for 5.1.1
0.0001940.00015799999999999
Output for 5.1.0
0.000179000000000010.00017600000000001
Output for 5.0.5
0.0003010.00026899999999999
Output for 5.0.4
0.0002730.00026599999999999
Output for 5.0.3
0.000280.00026299999999996
Output for 5.0.2
0.000267000000000020.00024799999999997
Output for 5.0.1
0.000287000000000040.00026399999999999
Output for 5.0.0
0.000267999999999990.000274
Output for 4.4.9
0.000271000000000020.00029200000000001
Output for 4.4.8
0.000292999999999990.00025000000000003
Output for 4.4.7
0.000293999999999960.00030000000000002
Output for 4.4.6
0.000270999999999970.00026300000000001
Output for 4.4.5
0.000283000000000030.00025500000000001
Output for 4.4.4
0.000280.00024799999999997
Output for 4.4.3
0.000261000000000070.00025200000000003
Output for 4.4.2
0.000272000000000050.00034599999999996
Output for 4.4.1
0.000255000000000010.000274
Output for 4.4.0
0.0002780.000247
Output for 4.3.11
0.000261999999999980.00027100000000002
Output for 4.3.10
0.000264000000000040.00024499999999994
Output for 4.3.9
0.000271000000000020.00025699999999995
Output for 4.3.8
0.000273000000000080.00027500000000003
Output for 4.3.7
0.000265999999999990.00029999999999997
Output for 4.3.6
0.000279999999999950.000305
Output for 4.3.5
0.000295999999999960.00029600000000007
Output for 4.3.4
0.0002740.00028499999999998
Output for 4.3.3
0.000334999999999970.00029999999999997
Output for 4.3.2
0.00150100000000010.001821
Output for 4.3.1
0.0015290.001798
Output for 4.3.0
0.0011720.001601