3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $r=[0,0,0]; $range=100000; $c=range(0,$range-1); for($a=0;$a<10;$a++){ $t=microtime(true); for($i=0;++$i<$range;)$c[$i]; $r[0]+=microtime(true)-$t; $t=microtime(true); foreach($c as $i)$i; $r[1]+=microtime(true)-$t; $t=microtime(true); $i=0; while(list(,$i)=each($c))$c[$i]; $r[2]+=microtime(true)-$t; } var_dump($r);
Output for 7.1.0
array(3) { [0]=> float(0.0072901248931885) [1]=> float(0.002960205078125) [2]=> float(0.020331621170044) }
Output for 7.0.14
array(3) { [0]=> float(0.02267599105835) [1]=> float(0.01009464263916) [2]=> float(0.024251222610474) }
Output for 7.0.10
array(3) { [0]=> float(0.01567554473877) [1]=> float(0.0066924095153809) [2]=> float(0.015377998352051) }
Output for 7.0.9
array(3) { [0]=> float(0.024163007736206) [1]=> float(0.009739875793457) [2]=> float(0.022800922393799) }
Output for 7.0.8
array(3) { [0]=> float(0.016928911209106) [1]=> float(0.007420539855957) [2]=> float(0.017574787139893) }
Output for 7.0.7
array(3) { [0]=> float(0.019328594207764) [1]=> float(0.0078964233398438) [2]=> float(0.018400192260742) }
Output for 7.0.6
array(3) { [0]=> float(0.019909858703613) [1]=> float(0.0086002349853516) [2]=> float(0.022593975067139) }
Output for 7.0.5
array(3) { [0]=> float(0.01604962348938) [1]=> float(0.0067877769470215) [2]=> float(0.015496015548706) }
Output for 7.0.4
array(3) { [0]=> float(0.015876054763794) [1]=> float(0.0069866180419922) [2]=> float(0.01514458656311) }
Output for 7.0.3
array(3) { [0]=> float(0.016320943832397) [1]=> float(0.0069689750671387) [2]=> float(0.015288829803467) }
Output for 7.0.2
array(3) { [0]=> float(0.014976263046265) [1]=> float(0.0068316459655762) [2]=> float(0.014771938323975) }
Output for 7.0.1
array(3) { [0]=> float(0.01566219329834) [1]=> float(0.0069079399108887) [2]=> float(0.024773836135864) }
Output for 7.0.0
array(3) { [0]=> float(0.013708114624023) [1]=> float(0.0064194202423096) [2]=> float(0.014212608337402) }
Output for 5.6.28
array(3) { [0]=> float(0.055717945098877) [1]=> float(0.035189390182495) [2]=> float(1.8119812011719E-5) }
Output for 5.6.25
array(3) { [0]=> float(0.044894456863403) [1]=> float(0.027702808380127) [2]=> float(1.4543533325195E-5) }
Output for 5.6.24
array(3) { [0]=> float(0.042261123657227) [1]=> float(0.023980140686035) [2]=> float(1.4066696166992E-5) }
Output for 5.6.23
array(3) { [0]=> float(0.049402952194214) [1]=> float(0.028942346572876) [2]=> float(1.3113021850586E-5) }
Output for 5.6.22
array(3) { [0]=> float(0.053178548812866) [1]=> float(0.032012462615967) [2]=> float(1.7404556274414E-5) }
Output for 5.6.21
array(3) { [0]=> float(0.045868873596191) [1]=> float(0.028671503067017) [2]=> float(1.7166137695312E-5) }
Output for 5.6.20
array(3) { [0]=> float(0.040901184082031) [1]=> float(0.024933576583862) [2]=> float(1.4543533325195E-5) }
Output for 5.6.19
array(3) { [0]=> float(0.040510654449463) [1]=> float(0.02384877204895) [2]=> float(1.1444091796875E-5) }
Output for 5.6.18
array(3) { [0]=> float(0.04771089553833) [1]=> float(0.028568029403687) [2]=> float(1.2636184692383E-5) }
Output for 5.6.17
array(3) { [0]=> float(0.03907036781311) [1]=> float(0.02361536026001) [2]=> float(9.7751617431641E-6) }
Output for 5.6.16
array(3) { [0]=> float(0.038772106170654) [1]=> float(0.02497386932373) [2]=> float(1.1920928955078E-5) }
Output for 5.6.15
array(3) { [0]=> float(0.042144298553467) [1]=> float(0.027731895446777) [2]=> float(1.4066696166992E-5) }
Output for 5.6.14
array(3) { [0]=> float(0.035917282104492) [1]=> float(0.022400140762329) [2]=> float(1.7404556274414E-5) }
Output for 5.6.13
array(3) { [0]=> float(0.039276123046875) [1]=> float(0.023671865463257) [2]=> float(1.215934753418E-5) }
Output for 5.6.12
array(3) { [0]=> float(0.036394119262695) [1]=> float(0.022856473922729) [2]=> float(1.5497207641602E-5) }
Output for 5.6.11
array(3) { [0]=> float(0.034508943557739) [1]=> float(0.021483182907104) [2]=> float(1.5020370483398E-5) }
Output for 5.6.10
array(3) { [0]=> float(0.038027048110962) [1]=> float(0.022567987442017) [2]=> float(1.6927719116211E-5) }
Output for 5.6.9
array(3) { [0]=> float(0.04894232749939) [1]=> float(0.029049634933472) [2]=> float(1.4066696166992E-5) }
Output for 5.6.8
array(3) { [0]=> float(0.044562339782715) [1]=> float(0.027077198028564) [2]=> float(2.0742416381836E-5) }
Output for 5.6.7
array(3) { [0]=> float(0.045105218887329) [1]=> float(0.026843070983887) [2]=> float(1.1444091796875E-5) }
Output for 5.6.6
array(3) { [0]=> float(0.042000532150269) [1]=> float(0.025602340698242) [2]=> float(1.3589859008789E-5) }
Output for 5.6.5
array(3) { [0]=> float(0.038420438766479) [1]=> float(0.023025274276733) [2]=> float(1.1920928955078E-5) }
Output for 5.6.4
array(3) { [0]=> float(0.051173448562622) [1]=> float(0.029966354370117) [2]=> float(1.978874206543E-5) }
Output for 5.6.3
array(3) { [0]=> float(0.050015449523926) [1]=> float(0.029879331588745) [2]=> float(1.2874603271484E-5) }
Output for 5.6.2
array(3) { [0]=> float(0.040965795516968) [1]=> float(0.024925708770752) [2]=> float(1.4305114746094E-5) }
Output for 5.6.1
array(3) { [0]=> float(0.048671960830688) [1]=> float(0.028687238693237) [2]=> float(1.5497207641602E-5) }
Output for 5.6.0
array(3) { [0]=> float(0.048186779022217) [1]=> float(0.028427362442017) [2]=> float(1.3351440429688E-5) }
Output for 5.5.38
array(3) { [0]=> float(0.046467065811157) [1]=> float(0.029001712799072) [2]=> float(1.3589859008789E-5) }
Output for 5.5.37
array(3) { [0]=> float(0.045886993408203) [1]=> float(0.028540134429932) [2]=> float(1.8835067749023E-5) }
Output for 5.5.36
array(3) { [0]=> float(0.048858880996704) [1]=> float(0.029819488525391) [2]=> float(1.6927719116211E-5) }
Output for 5.5.35
array(3) { [0]=> float(0.051616191864014) [1]=> float(0.031498432159424) [2]=> float(1.4543533325195E-5) }
Output for 5.5.34
array(3) { [0]=> float(0.045258045196533) [1]=> float(0.028903961181641) [2]=> float(2.1696090698242E-5) }
Output for 5.5.33
array(3) { [0]=> float(0.039185047149658) [1]=> float(0.024362087249756) [2]=> float(1.3351440429688E-5) }
Output for 5.5.32
array(3) { [0]=> float(0.037666797637939) [1]=> float(0.023548603057861) [2]=> float(2.0742416381836E-5) }
Output for 5.5.31
array(3) { [0]=> float(0.039434194564819) [1]=> float(0.025133609771729) [2]=> float(1.7404556274414E-5) }
Output for 5.5.30
array(3) { [0]=> float(0.039215803146362) [1]=> float(0.024754047393799) [2]=> float(1.4066696166992E-5) }
Output for 5.5.29
array(3) { [0]=> float(0.043370008468628) [1]=> float(0.027436256408691) [2]=> float(1.2874603271484E-5) }
Output for 5.5.28
array(3) { [0]=> float(0.050122976303101) [1]=> float(0.030220031738281) [2]=> float(2.0980834960938E-5) }
Output for 5.5.27
array(3) { [0]=> float(0.033954620361328) [1]=> float(0.02131199836731) [2]=> float(1.1205673217773E-5) }
Output for 5.5.26
array(3) { [0]=> float(0.038983106613159) [1]=> float(0.025044202804565) [2]=> float(1.2874603271484E-5) }
Output for 5.5.25
array(3) { [0]=> float(0.050656080245972) [1]=> float(0.031470775604248) [2]=> float(1.6450881958008E-5) }
Output for 5.5.24
array(3) { [0]=> float(0.04274845123291) [1]=> float(0.027022838592529) [2]=> float(1.5020370483398E-5) }
Output for 5.5.23
array(3) { [0]=> float(0.047926187515259) [1]=> float(0.030026197433472) [2]=> float(1.4543533325195E-5) }
Output for 5.5.22
array(3) { [0]=> float(0.054489850997925) [1]=> float(0.03209400177002) [2]=> float(1.8119812011719E-5) }
Output for 5.5.21
array(3) { [0]=> float(0.045103311538696) [1]=> float(0.027729749679565) [2]=> float(1.1682510375977E-5) }
Output for 5.5.20
array(3) { [0]=> float(0.05351448059082) [1]=> float(0.035277605056763) [2]=> float(1.978874206543E-5) }
Output for 5.5.19
array(3) { [0]=> float(0.040914297103882) [1]=> float(0.02551531791687) [2]=> float(1.5020370483398E-5) }
Output for 5.5.18
array(3) { [0]=> float(0.053950309753418) [1]=> float(0.032860040664673) [2]=> float(1.6927719116211E-5) }
Output for 5.5.16
array(3) { [0]=> float(0.045959949493408) [1]=> float(0.028960466384888) [2]=> float(1.3351440429688E-5) }
Output for 5.5.15
array(3) { [0]=> float(0.045036315917969) [1]=> float(0.027567863464355) [2]=> float(1.3589859008789E-5) }
Output for 5.5.14
array(3) { [0]=> float(0.044933795928955) [1]=> float(0.027592658996582) [2]=> float(1.5020370483398E-5) }
Output for 5.5.13
array(3) { [0]=> float(0.0419020652771) [1]=> float(0.025928020477295) [2]=> float(1.215934753418E-5) }
Output for 5.5.12
array(3) { [0]=> float(0.04169750213623) [1]=> float(0.025279998779297) [2]=> float(1.3351440429688E-5) }
Output for 5.5.11
array(3) { [0]=> float(0.041213512420654) [1]=> float(0.025284290313721) [2]=> float(1.7642974853516E-5) }
Output for 5.5.10
array(3) { [0]=> float(0.047155141830444) [1]=> float(0.02815580368042) [2]=> float(1.7166137695312E-5) }
Output for 5.5.9
array(3) { [0]=> float(0.054107666015625) [1]=> float(0.032923221588135) [2]=> float(1.3113021850586E-5) }
Output for 5.5.8
array(3) { [0]=> float(0.052114963531494) [1]=> float(0.032307147979736) [2]=> float(1.9550323486328E-5) }
Output for 5.5.7
array(3) { [0]=> float(0.053184986114502) [1]=> float(0.032152414321899) [2]=> float(1.4305114746094E-5) }
Output for 5.5.6
array(3) { [0]=> float(0.042785882949829) [1]=> float(0.025989055633545) [2]=> float(1.4066696166992E-5) }
Output for 5.5.5
array(3) { [0]=> float(0.041253805160522) [1]=> float(0.026249170303345) [2]=> float(1.8835067749023E-5) }
Output for 5.5.4
array(3) { [0]=> float(0.043448925018311) [1]=> float(0.027880430221558) [2]=> float(1.4543533325195E-5) }
Output for 5.5.3
array(3) { [0]=> float(0.044212102890015) [1]=> float(0.02813458442688) [2]=> float(1.2397766113281E-5) }
Output for 5.5.2
array(3) { [0]=> float(0.047104358673096) [1]=> float(0.029075384140015) [2]=> float(1.0490417480469E-5) }
Output for 5.5.1
array(3) { [0]=> float(0.045300960540771) [1]=> float(0.028875112533569) [2]=> float(1.6450881958008E-5) }
Output for 5.5.0
array(3) { [0]=> float(0.042867183685303) [1]=> float(0.026309967041016) [2]=> float(1.3351440429688E-5) }
Output for 5.4.45
array(3) { [0]=> float(0.03718113899231) [1]=> float(0.02379322052002) [2]=> float(9.0599060058594E-6) }
Output for 5.4.44
array(3) { [0]=> float(0.037556409835815) [1]=> float(0.023847341537476) [2]=> float(1.8835067749023E-5) }
Output for 5.4.43
array(3) { [0]=> float(0.040497779846191) [1]=> float(0.025547981262207) [2]=> float(1.6689300537109E-5) }
Output for 5.4.42
array(3) { [0]=> float(0.039743423461914) [1]=> float(0.026038885116577) [2]=> float(1.3828277587891E-5) }
Output for 5.4.41
array(3) { [0]=> float(0.045711040496826) [1]=> float(0.029409885406494) [2]=> float(1.3828277587891E-5) }
Output for 5.4.40
array(3) { [0]=> float(0.041780948638916) [1]=> float(0.026741504669189) [2]=> float(1.215934753418E-5) }
Output for 5.4.39
array(3) { [0]=> float(0.057104349136353) [1]=> float(0.034367799758911) [2]=> float(1.7642974853516E-5) }
Output for 5.4.38
array(3) { [0]=> float(0.055878639221191) [1]=> float(0.033458948135376) [2]=> float(1.9311904907227E-5) }
Output for 5.4.37
array(3) { [0]=> float(0.046633958816528) [1]=> float(0.028413534164429) [2]=> float(1.215934753418E-5) }
Output for 5.4.36
array(3) { [0]=> float(0.055232763290405) [1]=> float(0.033334732055664) [2]=> float(1.6927719116211E-5) }
Output for 5.4.35
array(3) { [0]=> float(0.043887138366699) [1]=> float(0.027447462081909) [2]=> float(1.1920928955078E-5) }
Output for 5.4.34
array(3) { [0]=> float(0.043801546096802) [1]=> float(0.027495145797729) [2]=> float(1.6927719116211E-5) }
Output for 5.4.32
array(3) { [0]=> float(0.045992612838745) [1]=> float(0.028658151626587) [2]=> float(1.3113021850586E-5) }
Output for 5.4.31
array(3) { [0]=> float(0.056120634078979) [1]=> float(0.033071994781494) [2]=> float(1.8119812011719E-5) }
Output for 5.4.30
array(3) { [0]=> float(0.046644926071167) [1]=> float(0.029557704925537) [2]=> float(1.52587890625E-5) }
Output for 5.4.29
array(3) { [0]=> float(0.04522705078125) [1]=> float(0.029123067855835) [2]=> float(1.2636184692383E-5) }
Output for 5.4.28
array(3) { [0]=> float(0.045982599258423) [1]=> float(0.031112432479858) [2]=> float(1.6212463378906E-5) }
Output for 5.4.27
array(3) { [0]=> float(0.042036771774292) [1]=> float(0.028104066848755) [2]=> float(1.3351440429688E-5) }
Output for 5.4.26
array(3) { [0]=> float(0.052163600921631) [1]=> float(0.032567739486694) [2]=> float(1.7881393432617E-5) }
Output for 5.4.25
array(3) { [0]=> float(0.039581775665283) [1]=> float(0.026598215103149) [2]=> float(1.5735626220703E-5) }
Output for 5.4.24
array(3) { [0]=> float(0.040223121643066) [1]=> float(0.029037714004517) [2]=> float(1.2636184692383E-5) }
Output for 5.4.23
array(3) { [0]=> float(0.04707145690918) [1]=> float(0.030616521835327) [2]=> float(2.0027160644531E-5) }
Output for 5.4.22
array(3) { [0]=> float(0.051650762557983) [1]=> float(0.034040927886963) [2]=> float(1.4066696166992E-5) }
Output for 5.4.21
array(3) { [0]=> float(0.045114040374756) [1]=> float(0.029288053512573) [2]=> float(2.0027160644531E-5) }
Output for 5.4.20
array(3) { [0]=> float(0.051925182342529) [1]=> float(0.033251523971558) [2]=> float(1.7166137695312E-5) }
Output for 5.4.19
array(3) { [0]=> float(0.043045997619629) [1]=> float(0.026124715805054) [2]=> float(1.215934753418E-5) }
Output for 5.4.18
array(3) { [0]=> float(0.052072286605835) [1]=> float(0.031357288360596) [2]=> float(1.7881393432617E-5) }
Output for 5.4.17
array(3) { [0]=> float(0.049813508987427) [1]=> float(0.031787395477295) [2]=> float(2.1696090698242E-5) }
Output for 5.4.16
array(3) { [0]=> float(0.048502445220947) [1]=> float(0.030399322509766) [2]=> float(1.6689300537109E-5) }
Output for 5.4.15
array(3) { [0]=> float(0.051041841506958) [1]=> float(0.033092260360718) [2]=> float(1.8119812011719E-5) }
Output for 5.4.14
array(3) { [0]=> float(0.050244092941284) [1]=> float(0.031302213668823) [2]=> float(1.3828277587891E-5) }
Output for 5.4.13
array(3) { [0]=> float(0.045312881469727) [1]=> float(0.028565168380737) [2]=> float(1.3828277587891E-5) }
Output for 5.4.12
array(3) { [0]=> float(0.056692123413086) [1]=> float(0.033934354782104) [2]=> float(1.7642974853516E-5) }
Output for 5.4.11
array(3) { [0]=> float(0.044454574584961) [1]=> float(0.028061151504517) [2]=> float(1.3113021850586E-5) }
Output for 5.4.10
array(3) { [0]=> float(0.053796529769897) [1]=> float(0.034026622772217) [2]=> float(1.5974044799805E-5) }
Output for 5.4.9
array(3) { [0]=> float(0.05162787437439) [1]=> float(0.032312870025635) [2]=> float(2.0265579223633E-5) }
Output for 5.4.8
array(3) { [0]=> float(0.048730611801147) [1]=> float(0.030408143997192) [2]=> float(1.835823059082E-5) }
Output for 5.4.7
array(3) { [0]=> float(0.043456554412842) [1]=> float(0.027199268341064) [2]=> float(1.3589859008789E-5) }
Output for 5.4.6
array(3) { [0]=> float(0.056031227111816) [1]=> float(0.0331711769104) [2]=> float(1.5497207641602E-5) }
Output for 5.4.5
array(3) { [0]=> float(0.048017024993896) [1]=> float(0.031161546707153) [2]=> float(1.5974044799805E-5) }
Output for 5.4.4
array(3) { [0]=> float(0.042201995849609) [1]=> float(0.025991201400757) [2]=> float(1.1920928955078E-5) }
Output for 5.4.3
array(3) { [0]=> float(0.045935153961182) [1]=> float(0.028558731079102) [2]=> float(1.835823059082E-5) }
Output for 5.4.2
array(3) { [0]=> float(0.04987645149231) [1]=> float(0.032469034194946) [2]=> float(1.835823059082E-5) }
Output for 5.4.1
array(3) { [0]=> float(0.044729709625244) [1]=> float(0.029097318649292) [2]=> float(1.8596649169922E-5) }
Output for 5.4.0
array(3) { [0]=> float(0.045783758163452) [1]=> float(0.029211282730103) [2]=> float(1.6927719116211E-5) }
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.3.29
Parse error: syntax error, unexpected '[' in /in/JNVcD on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1, 5.0.0 - 5.0.5
Parse error: parse error, unexpected '[' in /in/JNVcD on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/JNVcD on line 2
Process exited with code 255.