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[] = $e - $b; } var_dump(array_sum($a) / count($a));
Output for 5.4.19, 7.0.0, 7.0.9, 7.1.0
float(6.1988830566406E-8)
Output for 5.3.14, 7.0.14
float(1.2397766113281E-7)
Output for 7.0.12
float(7.8678131103516E-8)
Output for 7.0.5, 7.0.11
float(5.9604644775391E-8)
Output for 7.0.10
float(3.0994415283203E-8)
Output for 7.0.2, 7.0.8
float(5.0067901611328E-8)
Output for 5.4.44, 5.6.21, 7.0.7
float(9.0599060058594E-8)
Output for 5.3.3, 5.5.7, 5.6.16, 5.6.22, 7.0.6
float(1.0013580322266E-7)
Output for 7.0.4
float(0)
Output for 5.5.27, 5.5.38, 5.6.25, 7.0.3
float(8.8214874267578E-8)
Output for 7.0.1
float(6.4373016357422E-8)
Output for 5.3.18, 5.4.1, 5.6.28
float(1.5497207641602E-7)
Output for 5.6.27
float(7.62939453125E-8)
Output for 5.3.26, 5.5.28, 5.5.31, 5.6.26
float(1.1920928955078E-7)
Output for 5.6.24
float(1.978874206543E-7)
Output for 5.3.23, 5.5.33, 5.6.23
float(1.7166137695312E-7)
Output for 5.5.5, 5.5.19, 5.6.20
float(1.0967254638672E-7)
Output for 5.2.14, 5.6.19
float(1.8835067749023E-7)
Output for 5.6.18
float(1.1205673217773E-7)
Output for 5.5.23, 5.6.17
float(9.2983245849609E-8)
Output for 5.6.15
float(6.6757202148438E-8)
Output for 5.6.7, 5.6.14
float(1.0251998901367E-7)
Output for 5.6.13
float(2.8610229492187E-8)
Output for 5.6.12
float(6.9141387939453E-8)
Output for 5.5.20, 5.5.24, 5.5.29, 5.6.11
float(1.1682510375977E-7)
Output for 5.1.6, 5.3.2, 5.4.38, 5.5.9, 5.5.34, 5.5.36, 5.6.3, 5.6.10
float(1.2874603271484E-7)
Output for 5.5.8, 5.6.9
float(1.8596649169922E-7)
Output for 5.4.13, 5.6.1, 5.6.8
float(1.2636184692383E-7)
Output for 5.4.2, 5.5.11, 5.6.6
float(1.3828277587891E-7)
Output for 5.3.22, 5.6.5
float(2.0503997802734E-7)
Output for 5.5.1, 5.6.4
float(2.4318695068359E-7)
Output for 5.3.6, 5.6.2
float(2.2411346435547E-7)
Output for 5.3.13, 5.4.0, 5.6.0
float(1.215934753418E-7)
Output for 5.5.37
float(2.9802322387695E-7)
Output for 5.5.30, 5.5.35
float(1.072883605957E-7)
Output for 5.2.3, 5.4.17, 5.4.32, 5.4.35, 5.5.13, 5.5.32
float(1.3589859008789E-7)
Output for 5.5.16, 5.5.26
float(1.52587890625E-7)
Output for 5.5.25
float(2.5272369384766E-7)
Output for 5.5.22
float(2.0027160644531E-7)
Output for 5.4.5 - 5.4.6, 5.4.23, 5.5.3, 5.5.21
float(1.3113021850586E-7)
Output for 5.5.18
float(3.5524368286133E-7)
Output for 5.3.24 - 5.3.25, 5.3.28, 5.4.12, 5.4.36, 5.5.0, 5.5.15
float(1.6927719116211E-7)
Output for 5.1.5, 5.4.4, 5.5.14
float(1.9550323486328E-7)
Output for 5.5.12
float(2.5510787963867E-7)
Output for 5.5.10
float(1.8119812011719E-7)
Output for 5.4.10, 5.5.6
float(1.9073486328125E-7)
Output for 5.3.11, 5.4.9, 5.5.4
float(2.1934509277344E-7)
Output for 5.4.26, 5.5.2
float(2.2172927856445E-7)
Output for 5.4.45
float(1.1444091796875E-7)
Output for 5.4.43
float(8.5830688476562E-8)
Output for 5.4.42
float(1.7881393432617E-7)
Output for 5.3.29, 5.4.41
float(1.4543533325195E-7)
Output for 5.4.40
float(3.2663345336914E-7)
Output for 5.3.15, 5.3.27, 5.4.39
float(2.0980834960938E-7)
Output for 5.4.25, 5.4.34, 5.4.37
float(1.7404556274414E-7)
Output for 5.1.0, 5.3.10, 5.4.31
float(1.7642974853516E-7)
Output for 5.2.4, 5.3.17, 5.4.30
float(2.0742416381836E-7)
Output for 5.4.29
float(1.6689300537109E-7)
Output for 5.3.4, 5.4.28
float(1.5974044799805E-7)
Output for 5.3.0, 5.4.27
float(1.6450881958008E-7)
Output for 5.4.24
float(3.1709671020508E-7)
Output for 5.4.22
float(2.9325485229492E-7)
Output for 5.3.12, 5.4.21
float(1.4781951904297E-7)
Output for 5.4.20
float(2.1696090698242E-7)
Output for 5.3.9, 5.4.18
float(1.6212463378906E-7)
Output for 5.4.16
float(9.5367431640625E-8)
Output for 5.4.15
float(1.0490417480469E-7)
Output for 5.1.4, 5.2.2, 5.3.1, 5.4.14
float(1.5020370483398E-7)
Output for 5.4.11
float(2.3126602172852E-7)
Output for 5.4.8
float(2.6226043701172E-7)
Output for 5.4.7
float(2.4080276489258E-7)
Output for 5.4.3
float(8.1062316894531E-8)
Output for 5.2.0, 5.3.21
float(2.7179718017578E-7)
Output for 5.3.20
float(1.9311904907227E-7)
Output for 5.0.3, 5.1.1, 5.2.13, 5.3.19
float(2.3365020751953E-7)
Output for 5.2.16, 5.3.16
float(1.5735626220703E-7)
Output for 5.3.8
float(2.8848648071289E-7)
Output for 5.0.4, 5.2.6, 5.3.7
float(2.2649765014648E-7)
Output for 5.3.5
float(2.288818359375E-7)
Output for 5.2.12, 5.2.17
float(2.4557113647461E-7)
Output for 5.2.15
float(2.3603439331055E-7)
Output for 5.2.8, 5.2.11
float(2.7894973754883E-7)
Output for 5.2.1, 5.2.10
float(2.6941299438477E-7)
Output for 5.2.7, 5.2.9
float(2.598762512207E-7)
Output for 5.2.5
float(2.5033950805664E-7)
Output for 5.1.3
float(2.0265579223633E-7)
Output for 5.1.2
float(2.8610229492188E-7)
Output for 5.0.5
float(4.2438507080078E-7)
Output for 5.0.2
float(3.4570693969727E-7)
Output for 5.0.1
float(1.7166137695313E-7)
Output for 5.0.0
float(3.0279159545898E-7)
Output for 4.3.11, 4.4.9
float(5.5E-7)
Output for 4.4.8
float(9.2E-7)
Output for 4.4.7
float(5.8E-7)
Output for 4.4.6
float(6.2E-7)
Output for 4.4.5
float(7.0E-7)
Output for 4.4.4
float(4.9E-7)
Output for 4.4.3
float(3.9E-7)
Output for 4.4.2
float(7.6E-7)
Output for 4.4.1
float(1.3E-6)
Output for 4.4.0
float(4.7E-7)
Output for 4.3.10
float(8.4E-7)
Output for 4.3.9
float(1.02E-6)
Output for 4.3.0, 4.3.4, 4.3.8
float(1.13E-6)
Output for 4.3.7
float(1.28E-6)
Output for 4.3.6
float(1.37E-6)
Output for 4.3.5
float(1.38E-6)
Output for 4.3.3
float(1.27E-6)
Output for 4.3.2
float(1.06E-6)
Output for 4.3.1
float(1.42E-6)