3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a=array(); $b=null; $e=null; $l=100; $i=0; while($i++ < $l){ $b=microtime(true); $e=microtime(true); $a[] = $b - $e; } var_dump(array_sum($a) / count($a));
Output for 7.1.0
float(-1.0490417480469E-7)
Output for 7.0.14
float(-4.5299530029297E-8)
Output for 7.0.9 - 7.0.10
float(-1.215934753418E-7)
Output for 5.2.7, 5.4.14, 5.4.40, 5.5.6, 5.6.11, 7.0.8
float(-1.5974044799805E-7)
Output for 5.4.7, 5.5.28, 7.0.6 - 7.0.7
float(-1.2636184692383E-7)
Output for 5.4.32, 5.5.16, 5.5.31, 7.0.5
float(-1.3113021850586E-7)
Output for 7.0.2, 7.0.4
float(-6.6757202148438E-8)
Output for 5.4.9, 7.0.3
float(-1.0013580322266E-7)
Output for 5.5.15, 7.0.1
float(-9.0599060058594E-8)
Output for 7.0.0
float(-1.0967254638672E-7)
Output for 5.3.5, 5.6.28
float(-1.8835067749023E-7)
Output for 5.4.22, 5.5.1, 5.5.19, 5.5.30, 5.6.25
float(-1.9311904907227E-7)
Output for 5.3.20, 5.5.21, 5.6.9, 5.6.24
float(-1.7881393432617E-7)
Output for 5.6.4, 5.6.23
float(-1.5735626220703E-7)
Output for 5.3.13, 5.4.6, 5.5.35, 5.6.22
float(-1.6689300537109E-7)
Output for 5.4.36, 5.6.21
float(-2.288818359375E-7)
Output for 5.6.20
float(-1.1682510375977E-7)
Output for 5.6.19
float(-1.4781951904297E-7)
Output for 5.4.41, 5.5.26, 5.6.5, 5.6.16, 5.6.18
float(-1.2874603271484E-7)
Output for 5.4.2, 5.6.17
float(-1.9073486328125E-7)
Output for 5.2.3, 5.6.15
float(-2.4080276489258E-7)
Output for 5.6.2, 5.6.14
float(-1.2397766113281E-7)
Output for 5.4.3, 5.6.13
float(-1.6212463378906E-7)
Output for 5.2.1, 5.6.12
float(-3.2424926757813E-7)
Output for 5.6.10
float(-2.4795532226563E-7)
Output for 5.3.29, 5.4.5, 5.6.0, 5.6.3, 5.6.8
float(-1.3828277587891E-7)
Output for 5.6.7
float(-3.0994415283203E-7)
Output for 5.6.6
float(-1.1920928955078E-7)
Output for 5.3.1, 5.3.26, 5.4.13, 5.6.1
float(-1.4543533325195E-7)
Output for 5.2.8, 5.5.38
float(-2.4318695068359E-7)
Output for 5.2.9, 5.4.37, 5.4.43, 5.5.18, 5.5.23 - 5.5.24, 5.5.37
float(-1.6927719116211E-7)
Output for 5.4.10, 5.4.39, 5.5.36
float(-1.52587890625E-7)
Output for 5.4.30, 5.5.34
float(-1.7166137695312E-7)
Output for 5.5.33
float(-2.5272369384766E-7)
Output for 5.3.27, 5.4.25, 5.4.44, 5.5.32
float(-2.2172927856445E-7)
Output for 5.3.11, 5.5.29
float(-1.7404556274414E-7)
Output for 5.4.0, 5.5.12, 5.5.27
float(-1.6450881958008E-7)
Output for 5.5.25
float(-2.0265579223633E-7)
Output for 5.4.28, 5.5.22
float(-1.5497207641602E-7)
Output for 5.5.20
float(-2.598762512207E-7)
Output for 5.5.14
float(-2.3603439331055E-7)
Output for 5.2.15, 5.3.3, 5.5.0, 5.5.4, 5.5.9, 5.5.13
float(-1.4305114746094E-7)
Output for 5.2.14, 5.5.11
float(-2.9802322387695E-7)
Output for 5.2.10, 5.5.10
float(-9.2983245849609E-8)
Output for 5.3.18, 5.4.31, 5.4.34, 5.5.8
float(-1.978874206543E-7)
Output for 5.2.4, 5.2.13, 5.5.7
float(-2.1457672119141E-7)
Output for 5.4.20, 5.4.23, 5.5.5
float(-2.0503997802734E-7)
Output for 5.4.19, 5.4.38, 5.5.3
float(-1.5020370483398E-7)
Output for 5.2.11, 5.3.4, 5.3.9, 5.4.12, 5.5.2
float(-2.0027160644531E-7)
Output for 5.1.1, 5.3.15, 5.4.45
float(-1.8119812011719E-7)
Output for 5.3.8, 5.3.17, 5.4.21, 5.4.42
float(-1.8596649169922E-7)
Output for 5.3.19, 5.3.28, 5.4.4, 5.4.35
float(-1.7642974853516E-7)
Output for 5.1.6, 5.3.14, 5.4.29
float(-2.2411346435547E-7)
Output for 5.1.5, 5.4.27
float(-2.6464462280273E-7)
Output for 5.3.23, 5.4.26
float(-2.0980834960938E-7)
Output for 5.4.24
float(-1.835823059082E-7)
Output for 5.4.18
float(-2.6941299438477E-7)
Output for 5.3.16, 5.4.15, 5.4.17
float(-1.4066696166992E-7)
Output for 5.4.16
float(-3.3855438232422E-7)
Output for 5.4.11
float(-2.1934509277344E-7)
Output for 5.4.8
float(-2.9087066650391E-7)
Output for 5.1.4, 5.4.1
float(-2.4557113647461E-7)
Output for 5.3.21, 5.3.25
float(-2.1219253540039E-7)
Output for 5.3.24
float(-4.7683715820313E-8)
Output for 5.2.6, 5.3.7, 5.3.22
float(-2.3365020751953E-7)
Output for 5.3.12
float(-2.0742416381836E-7)
Output for 5.3.10
float(-7.62939453125E-8)
Output for 5.2.0, 5.3.6
float(-2.3126602172852E-7)
Output for 5.3.2
float(-2.5033950805664E-7)
Output for 5.3.0
float(-1.9550323486328E-7)
Output for 5.2.17
float(-2.6702880859375E-7)
Output for 5.2.16
float(-2.5510787963867E-7)
Output for 5.1.3, 5.2.12
float(-2.5749206542969E-7)
Output for 5.2.2, 5.2.5
float(-2.3841857910156E-7)
Output for 5.1.2
float(-3.0040740966797E-7)
Output for 5.1.0
float(-3.1232833862305E-7)
Output for 5.0.5
float(-4.2200088500977E-7)
Output for 5.0.4
float(-4.0531158447266E-7)
Output for 5.0.3
float(-3.5524368286133E-7)
Output for 5.0.2
float(-3.8862228393555E-7)
Output for 5.0.1
float(-4.5537948608398E-7)
Output for 5.0.0
float(-3.5762786865234E-7)
Output for 4.4.9
float(-8.1E-7)
Output for 4.4.8
float(-9.7E-7)
Output for 4.4.7
float(-7.4E-7)
Output for 4.4.6
float(-8.7999999999999E-7)
Output for 4.4.5
float(-7.0E-7)
Output for 4.4.4
float(-9.1E-7)
Output for 4.4.3
float(-1.0E-6)
Output for 4.4.2
float(-1.16E-6)
Output for 4.4.1
float(-4.8E-7)
Output for 4.4.0
float(-6.1E-7)
Output for 4.3.0, 4.3.11
float(-1.25E-6)
Output for 4.3.10
float(-9.9999999999999E-7)
Output for 4.3.9
float(-1.35E-6)
Output for 4.3.8
float(-1.34E-6)
Output for 4.3.7
float(-1.37E-6)
Output for 4.3.6
float(-1.45E-6)
Output for 4.3.5
float(-1.42E-6)
Output for 4.3.4
float(-1.76E-6)
Output for 4.3.1, 4.3.3
float(-1.44E-6)
Output for 4.3.2
float(-1.13E-6)