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); echo "\n"; $time = microtime(); for($i=0; $i < 1000; $i++) { mt_rand(1,9999999); } echo $time = (microtime()-$time);
based on G8rrR
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/XIfMU on line 7 Notice: A non well formed numeric value encountered in /in/XIfMU on line 7 0.000127 Notice: A non well formed numeric value encountered in /in/XIfMU on line 13 Notice: A non well formed numeric value encountered in /in/XIfMU on line 13 0.000133
Output for 7.0.14
0.000111 9.3999999999999E-5
Output for 7.0.6
6.0999999999978E-5 6.600000000001E-5
Output for 7.0.5
9.7000000000014E-5 8.2000000000026E-5
Output for 7.0.4
9.7000000000014E-5 8.9000000000006E-5
Output for 7.0.3
9.300000000001E-5 7.5999999999965E-5
Output for 7.0.2
8.4000000000028E-5 7.0999999999988E-5
Output for 7.0.1
6.3999999999953E-5 5.1999999999941E-5
Output for 7.0.0
0.000114 8.9000000000006E-5
Output for hhvm-3.12.0
0.00031200000000001 0.00018300000000002
Output for hhvm-3.10.0
0.00018799999999997 0.000114
Output for 5.6.28
0.000273 0.00028
Output for 5.6.21
0.00018899999999999 0.00017099999999992
Output for 5.6.20
0.000138 0.00012599999999999
Output for 5.6.19
0.00015600000000004 0.00014000000000003
Output for 5.6.18
0.000127 0.000125
Output for 5.6.17
0.00027400000000001 0.00026699999999999
Output for 5.6.16
0.000162 0.00015999999999999
Output for 5.6.15
0.00019500000000006 0.00019599999999997
Output for 5.6.14
0.000167 0.000154
Output for 5.6.13
0.000168 0.000165
Output for 5.6.12
0.00017500000000004 0.00016299999999991
Output for 5.6.11
0.00019400000000003 0.00017700000000009
Output for 5.6.10
0.00018799999999999 0.000167
Output for 5.6.9
0.00018899999999999 0.00020499999999998
Output for 5.6.8
0.00017400000000001 0.00013000000000002
Output for 5.6.7
0.00012699999999999 0.00012199999999998
Output for 5.5.35
0.00020399999999998 0.00019999999999998
Output for 5.5.34
0.00012499999999993 0.000116
Output for 5.5.33
0.00019900000000006 0.00018399999999996
Output for 5.5.32
0.000153 0.000132
Output for 5.5.31
0.00018300000000004 0.000162
Output for 5.5.30
0.00014 0.000111
Output for 5.5.29
0.0001230000000001 0.00011099999999997
Output for 5.5.28
0.00015799999999999 0.00014800000000004
Output for 5.5.27
0.00012899999999993 0.00011399999999995
Output for 5.5.26
0.00020399999999998 0.00019600000000003
Output for 5.5.25
0.00019 0.000169
Output for 5.5.24
0.00016400000000005 0.00015199999999993
Output for 5.4.45
0.00012499999999993 0.00010600000000005
Output for 5.4.44
0.00025799999999998 0.00029299999999999
Output for 5.4.43
0.00022199999999994 0.00019199999999997
Output for 5.4.42
0.000386 0.00034299999999998
Output for 5.4.41
0.00024499999999994 0.00019100000000005
Output for 5.4.40
0.00021700000000002 0.00029599999999999
Output for 5.4.39
0.00021199999999999 0.00018300000000004
Output for 5.4.38
0.000222 0.00032399999999999
Output for 5.4.37
0.00023300000000004 0.00018600000000002
Output for 5.4.36
0.00021300000000002 0.00030599999999992
Output for 5.4.35
0.00021000000000004 0.0047480000000001
Output for 5.4.34
0.00021099999999999 0.00018899999999999
Output for 5.4.32
0.000166 0.00028899999999998
Output for 5.4.31
0.00015899999999996 0.00017499999999998
Output for 5.4.30
0.00027100000000002 0.00025399999999998
Output for 5.4.29
0.00016799999999995 0.000143
Output for 5.4.28
0.00017600000000006 0.00018299999999993
Output for 5.4.27
0.00016499999999997 0.00016300000000002
Output for 5.4.26
0.00016200000000011 0.00016400000000005
Output for 5.4.25
0.00014999999999998 0.00018400000000007
Output for 5.4.24
0.00018300000000004 0.00015200000000004
Output for 5.4.23
0.00016700000000003 0.00015399999999999
Output for 5.4.22
0.00027299999999997 0.00027699999999997
Output for 5.4.21
0.00015299999999996 0.00013599999999991
Output for 5.4.20
0.000157 0.000146
Output for 5.4.19
0.000171 0.000133
Output for 5.4.18
0.00017300000000001 0.00013199999999999
Output for 5.4.17
0.000167 0.000139
Output for 5.4.16
0.000249 0.00023100000000001
Output for 5.4.15
0.00015999999999999 0.00015999999999999
Output for 5.4.14
0.00018899999999999 0.00015199999999999
Output for 5.4.13
0.00019600000000003 0.00014800000000004
Output for 5.4.12
0.00029900000000005 0.000332
Output for 5.4.11
0.00016899999999997 0.00020199999999998
Output for 5.4.10
0.00018300000000004 0.00018799999999997
Output for 5.4.9
0.00016700000000003 0.00015100000000001
Output for 5.4.8
0.00027300000000008 0.00031000000000003
Output for 5.4.7
0.00015900000000002 0.00017599999999995
Output for 5.4.6
0.00016800000000006 0.00014900000000007
Output for 5.4.5
0.00016499999999997 0.00017
Output for 5.4.4
0.00016899999999997 0.00014799999999993
Output for 5.4.3
0.000193 0.00017999999999996
Output for 5.4.2
0.00020000000000009 0.00014700000000001
Output for 5.4.1
0.00018099999999999 0.00017299999999998
Output for 5.4.0
0.00019999999999998 0.00019399999999992
Output for 5.3.29
0.000177 0.00019
Output for 5.3.28
0.000184 0.000186
Output for 5.3.27
0.000168 0.00022
Output for 5.3.26
0.00031100000000001 0.00034600000000001
Output for 5.3.25
0.00029899999999999 0.00029799999999999
Output for 5.3.24
0.00020999999999999 0.00014900000000001
Output for 5.3.23
0.00018100000000004 0.00015300000000001
Output for 5.3.22
0.00020500000000001 0.00020600000000004
Output for 5.3.21
0.00020300000000001 0.00020100000000001
Output for 5.3.20
0.00019400000000003 0.00015999999999999
Output for 5.3.19
0.00031099999999995 0.00019999999999998
Output for 5.3.18
0.00025400000000009 0.00018899999999999
Output for 5.3.17
0.00017600000000006 0.00016499999999997
Output for 5.3.16
0.00018799999999997 0.00016800000000006
Output for 5.3.15
0.00020299999999995 0.00018200000000002
Output for 5.3.14
0.00029000000000001 0.00032399999999999
Output for 5.3.13
0.00019999999999998 0.00019900000000006
Output for 5.3.12
0.00020100000000001 0.00016400000000005
Output for 5.3.11
0.00022999999999995 0.00017900000000004
Output for 5.3.10
0.00021100000000007 0.00017800000000001
Output for 5.3.9
0.000204 0.000175
Output for 5.3.8
0.000172 0.000186
Output for 5.3.7
0.00017199999999999 0.000177
Output for 5.3.6
0.00020599999999998 0.00020400000000001
Output for 5.3.5
0.000194 0.00017699999999998
Output for 5.3.4
0.00019999999999998 0.000222
Output for 5.3.3
0.000195 0.00018800000000002
Output for 5.3.2
0.00018899999999999 0.00018599999999996
Output for 5.3.1
0.000224 0.00016500000000003
Output for 5.3.0
0.00030399999999997 0.000278
Output for 5.2.17
0.00034200000000001 0.00029799999999996
Output for 5.2.16
0.00018899999999999 0.00017199999999995
Output for 5.2.15
0.00021599999999999 0.00026300000000001
Output for 5.2.14
0.00020100000000001 0.00019599999999997
Output for 5.2.13
0.00020600000000004 0.00018499999999999
Output for 5.2.12
0.00019199999999997 0.00020500000000001
Output for 5.2.11
0.00026099999999996 0.00025300000000006
Output for 5.2.10
0.00019999999999998 0.00018599999999991
Output for 5.2.9
0.00020799999999999 0.00018899999999999
Output for 5.2.8
0.00031300000000001 0.00028600000000001
Output for 5.2.7
0.00018700000000005 0.00017100000000003
Output for 5.2.6
0.0002160000000001 0.00023099999999998
Output for 5.2.5
0.00035300000000005 0.00034500000000004
Output for 5.2.4
0.00018899999999999 0.00018800000000008
Output for 5.2.3
0.000207 0.000173
Output for 5.2.2
0.000212 0.00016899999999999
Output for 5.2.1
0.000212 0.00017900000000001
Output for 5.2.0
0.00017999999999999 0.00015899999999999
Output for 5.1.6
0.00018499999999999 0.00024299999999999
Output for 5.1.5
0.00022999999999998 0.00020200000000001
Output for 5.1.4
0.00017 0.00015599999999999
Output for 5.1.3
0.00017600000000001 0.00015999999999999
Output for 5.1.2
0.00019899999999995 0.00014700000000001
Output for 5.1.1
0.00017400000000001 0.00014999999999998
Output for 5.1.0
0.00017799999999996 0.00034499999999998
Output for 5.0.5
0.00029299999999999 0.000334
Output for 5.0.4
0.00026599999999999 0.00024800000000003
Output for 5.0.3
0.00027900000000003 0.000305
Output for 5.0.2
0.00028499999999998 0.00029499999999993
Output for 5.0.1
0.00030299999999994 0.00033500000000009
Output for 5.0.0
0.00031199999999998 0.000282
Output for 4.4.9
0.00027199999999994 0.00026700000000002
Output for 4.4.8
0.00026100000000007 0.00026800000000005
Output for 4.4.7
0.00029899999999994 0.00025200000000003
Output for 4.4.6
0.000282 0.00024400000000002
Output for 4.4.5
0.00028400000000006 0.00025900000000001
Output for 4.4.4
0.00026100000000007 0.00025900000000001
Output for 4.4.3
0.00027299999999997 0.00025600000000003
Output for 4.4.2
0.00028700000000004 0.00031799999999993
Output for 4.4.1
0.00026000000000004 0.00026499999999996
Output for 4.4.0
0.00028799999999995 0.000247
Output for 4.3.11
0.00043099999999996 0.00042999999999993
Output for 4.3.10
0.00048300000000001 0.00045799999999996
Output for 4.3.9
0.00044299999999997 0.00045499999999998
Output for 4.3.8
0.00031400000000004 -0.999666
Output for 4.3.7
0.000297 0.000261
Output for 4.3.6
0.000311 0.000272
Output for 4.3.5
0.000283 0.00024299999999999
Output for 4.3.4
0.000279 0.000265
Output for 4.3.3
0.00029999999999999 0.00032799999999999
Output for 4.3.2
0.001467 0.001785
Output for 4.3.1
0.001464 0.001814
Output for 4.3.0
0.001375 0.001713