3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $a = microtime(true); $h = 0; for($i = 0; $i < 10000; $i++) { $h++; } $b = microtime(true); var_dump($b - $a); $a = microtime(true); $h = 0; foreach (range(1, 10000) as $index) { $h++; } $b = microtime(true); var_dump($b - $a);
based on fFd0C
Output for 7.1.0
float(0.00042915344238281) float(0.00028586387634277)
Output for 7.0.14
float(0.00046896934509277) float(0.00028204917907715)
Output for 7.0.6
float(0.00012803077697754) float(0.00020098686218262)
Output for 7.0.5
float(0.00021004676818848) float(0.00035214424133301)
Output for 7.0.4
float(0.00015902519226074) float(0.00021696090698242)
Output for 7.0.3
float(0.00018596649169922) float(0.00023698806762695)
Output for 7.0.2
float(0.00017905235290527) float(0.00022482872009277)
Output for 7.0.1
float(0.00018787384033203) float(0.00021696090698242)
Output for 7.0.0
float(0.00018501281738281) float(0.00024795532226562)
Output for hhvm-3.12.0
float(0.00083208084106445) float(0.0010290145874023)
Output for hhvm-3.10.0
float(0.00056910514831543) float(0.00063705444335938)
Output for 5.6.28
float(0.00098204612731934) float(0.0024001598358154)
Output for 5.6.21
float(0.00042104721069336) float(0.0022459030151367)
Output for 5.6.20
float(0.0004570484161377) float(0.0023670196533203)
Output for 5.6.19
float(0.00038599967956543) float(0.0019509792327881)
Output for 5.6.18
float(0.00031304359436035) float(0.001622200012207)
Output for 5.6.17
float(0.00031113624572754) float(0.0016419887542725)
Output for 5.6.16
float(0.00029110908508301) float(0.0014870166778564)
Output for 5.6.15
float(0.00036191940307617) float(0.001849889755249)
Output for 5.6.14
float(0.00039982795715332) float(0.0020442008972168)
Output for 5.6.13
float(0.0004420280456543) float(0.0021171569824219)
Output for 5.6.12
float(0.00038599967956543) float(0.0020740032196045)
Output for 5.6.11
float(0.00040221214294434) float(0.0021572113037109)
Output for 5.6.10
float(0.0004580020904541) float(0.002418041229248)
Output for 5.6.9
float(0.00046801567077637) float(0.0022859573364258)
Output for 5.6.8
float(0.0003349781036377) float(0.0017428398132324)
Output for 5.6.7
float(0.00051784515380859) float(0.0027170181274414)
Output for 5.5.35
float(0.00060081481933594) float(0.003364086151123)
Output for 5.5.34
float(0.00028800964355469) float(0.0014200210571289)
Output for 5.5.33
float(0.0004570484161377) float(0.0023798942565918)
Output for 5.5.32
float(0.00028800964355469) float(0.0014281272888184)
Output for 5.5.31
float(0.00046205520629883) float(0.001417875289917)
Output for 5.5.30
float(0.00043702125549316) float(0.0023219585418701)
Output for 5.5.29
float(0.00044989585876465) float(0.0022931098937988)
Output for 5.5.28
float(0.00029182434082031) float(0.0016591548919678)
Output for 5.5.27
float(0.00048398971557617) float(0.0025398731231689)
Output for 5.5.26
float(0.00046801567077637) float(0.0023798942565918)
Output for 5.5.25
float(0.00038599967956543) float(0.0023581981658936)
Output for 5.5.24
float(0.00028395652770996) float(0.0014810562133789)
Output for 5.4.45
float(0.00034618377685547) float(0.0019190311431885)
Output for 5.4.44
float(0.00035405158996582) float(0.0023109912872314)
Output for 5.4.43
float(0.00024199485778809) float(0.0014259815216064)
Output for 5.4.42
float(0.00035595893859863) float(0.0022799968719482)
Output for 5.4.41
float(0.00035405158996582) float(0.0021250247955322)
Output for 5.4.40
float(0.0003821849822998) float(0.0033061504364014)
Output for 5.4.39
float(0.00034499168395996) float(0.0019161701202393)
Output for 5.4.38
float(0.00067806243896484) float(0.0026710033416748)
Output for 5.4.37
float(0.0006721019744873) float(0.0026450157165527)
Output for 5.4.36
float(0.0007331371307373) float(0.0027289390563965)
Output for 5.4.35
float(0.00064921379089355) float(0.0027220249176025)
Output for 5.4.34
float(0.00065898895263672) float(0.003882884979248)
Output for 5.4.32
float(0.00047802925109863) float(0.00164794921875)
Output for 5.4.31
float(0.00050687789916992) float(0.0016701221466064)
Output for 5.4.30
float(0.00048685073852539) float(0.0016720294952393)
Output for 5.4.29
float(0.00050187110900879) float(0.0016300678253174)
Output for 5.4.28
float(0.00047421455383301) float(0.0017170906066895)
Output for 5.4.27
float(0.00053906440734863) float(0.0016639232635498)
Output for 5.4.26
float(0.0010809898376465) float(0.002565860748291)
Output for 5.4.25
float(0.0004889965057373) float(0.0016062259674072)
Output for 5.4.24
float(0.00047707557678223) float(0.0016849040985107)
Output for 5.4.23
float(0.00049901008605957) float(0.0016319751739502)
Output for 5.4.22
float(0.00051212310791016) float(0.0015809535980225)
Output for 5.4.21
float(0.00051188468933105) float(0.0016298294067383)
Output for 5.4.20
float(0.00059294700622559) float(0.001633882522583)
Output for 5.4.19
float(0.00051689147949219) float(0.001594066619873)
Output for 5.4.18
float(0.00050806999206543) float(0.0016171932220459)
Output for 5.4.17
float(0.00052213668823242) float(0.0015549659729004)
Output for 5.4.16
float(0.00049996376037598) float(0.0032551288604736)
Output for 5.4.15
float(0.0004880428314209) float(0.001662015914917)
Output for 5.4.14
float(0.00048398971557617) float(0.0015349388122559)
Output for 5.4.13
float(0.0004880428314209) float(0.0016388893127441)
Output for 5.4.12
float(0.00049495697021484) float(0.0015890598297119)
Output for 5.4.11
float(0.00049209594726562) float(0.0016250610351562)
Output for 5.4.10
float(0.00050806999206543) float(0.001741886138916)
Output for 5.4.9
float(0.00051212310791016) float(0.0016839504241943)
Output for 5.4.8
float(0.00050783157348633) float(0.0016028881072998)
Output for 5.4.7
float(0.00049400329589844) float(0.0017502307891846)
Output for 5.4.6
float(0.00049209594726562) float(0.00177001953125)
Output for 5.4.5
float(0.00055289268493652) float(0.001945972442627)
Output for 5.4.4
float(0.00049996376037598) float(0.0015869140625)
Output for 5.4.3
float(0.00051617622375488) float(0.0017421245574951)
Output for 5.4.2
float(0.00046491622924805) float(0.001701831817627)
Output for 5.4.1
float(0.00056695938110352) float(0.001990795135498)
Output for 5.4.0
float(0.0005650520324707) float(0.0016889572143555)
Output for 5.3.29
float(0.00063490867614746) float(0.0015339851379395)
Output for 5.3.28
float(0.00061297416687012) float(0.0016720294952393)
Output for 5.3.27
float(0.00059318542480469) float(0.0016460418701172)
Output for 5.3.26
float(0.00057387351989746) float(0.0015811920166016)
Output for 5.3.25
float(0.00059700012207031) float(0.0015921592712402)
Output for 5.3.24
float(0.00060200691223145) float(0.0015549659729004)
Output for 5.3.23
float(0.00060892105102539) float(0.0016360282897949)
Output for 5.3.22
float(0.00069594383239746) float(0.0017092227935791)
Output for 5.3.21
float(0.00062918663024902) float(0.0016610622406006)
Output for 5.3.20
float(0.00060892105102539) float(0.0016050338745117)
Output for 5.3.19
float(0.00061893463134766) float(0.0016369819641113)
Output for 5.3.18
float(0.00059294700622559) float(0.0016708374023438)
Output for 5.3.17
float(0.00062394142150879) float(0.0015740394592285)
Output for 5.3.16
float(0.00065302848815918) float(0.00164794921875)
Output for 5.3.15
float(0.0006260871887207) float(0.0016751289367676)
Output for 5.3.14
float(0.00059413909912109) float(0.0016450881958008)
Output for 5.3.13
float(0.00067591667175293) float(0.0017130374908447)
Output for 5.3.12
float(0.00081801414489746) float(0.0026161670684814)
Output for 5.3.11
float(0.00065207481384277) float(0.0016231536865234)
Output for 5.3.10
float(0.00063800811767578) float(0.0017979145050049)
Output for 5.3.9
float(0.00066685676574707) float(0.0016739368438721)
Output for 5.3.8
float(0.00069808959960938) float(0.0015718936920166)
Output for 5.3.7
float(0.00062894821166992) float(0.0015921592712402)
Output for 5.3.6
float(0.00060892105102539) float(0.0018689632415771)
Output for 5.3.5
float(0.0010058879852295) float(0.0028121471405029)
Output for 5.3.4
float(0.00061202049255371) float(0.0016200542449951)
Output for 5.3.3
float(0.0006101131439209) float(0.0017640590667725)
Output for 5.3.2
float(0.00063681602478027) float(0.0017287731170654)
Output for 5.3.1
float(0.00060296058654785) float(0.0016911029815674)
Output for 5.3.0
float(0.00063514709472656) float(0.0017111301422119)
Output for 5.2.17
float(0.00072383880615234) float(0.0017750263214111)
Output for 5.2.16
float(0.00074195861816406) float(0.001784086227417)
Output for 5.2.15
float(0.0010490417480469) float(0.0025858879089355)
Output for 5.2.14
float(0.00073099136352539) float(0.0018339157104492)
Output for 5.2.13
float(0.0007779598236084) float(0.0016720294952393)
Output for 5.2.12
float(0.00074291229248047) float(0.0018210411071777)
Output for 5.2.11
float(0.00072884559631348) float(0.0017309188842773)
Output for 5.2.10
float(0.00077295303344727) float(0.0018038749694824)
Output for 5.2.9
float(0.00071287155151367) float(0.0017678737640381)
Output for 5.2.8
float(0.00073885917663574) float(0.0019118785858154)
Output for 5.2.7
float(0.00073814392089844) float(0.0017809867858887)
Output for 5.2.6
float(0.00073504447937012) float(0.0019381046295166)
Output for 5.2.5
float(0.00077509880065918) float(0.0026378631591797)
Output for 5.2.4
float(0.00074505805969238) float(0.0026350021362305)
Output for 5.2.3
float(0.0007328987121582) float(0.0025920867919922)
Output for 5.2.2
float(0.0008080005645752) float(0.0025260448455811)
Output for 5.2.1
float(0.00070500373840332) float(0.0016300678253174)
Output for 5.2.0
float(0.0010321140289307) float(0.0015439987182617)
Output for 5.1.6
float(0.00074601173400879) float(0.0020661354064941)
Output for 5.1.5
float(0.00077295303344727) float(0.0020849704742432)
Output for 5.1.4
float(0.00079107284545898) float(0.0019559860229492)
Output for 5.1.3
float(0.001021146774292) float(0.0020830631256104)
Output for 5.1.2
float(0.00075602531433105) float(0.0020170211791992)
Output for 5.1.1
float(0.00073099136352539) float(0.0020720958709717)
Output for 5.1.0
float(0.00075292587280273) float(0.002126932144165)
Output for 5.0.5
float(0.0015721321105957) float(0.0042319297790527)
Output for 5.0.4
float(0.0015180110931396) float(0.0041079521179199)
Output for 5.0.3
float(0.0015089511871338) float(0.0036020278930664)
Output for 5.0.2
float(0.001535177230835) float(0.0039219856262207)
Output for 5.0.1
float(0.0017800331115723) float(0.0039949417114258)
Output for 5.0.0
float(0.0015029907226563) float(0.0038890838623047)
Output for 4.4.9
float(0.001517) float(0.002766)
Output for 4.4.8
float(0.001535) float(0.002717)
Output for 4.4.7
float(0.001561) float(0.00268)
Output for 4.4.6
float(0.0015740000000001) float(0.002847)
Output for 4.4.5
float(0.001565) float(0.0026189999999999)
Output for 4.4.4
float(0.0015580000000001) float(0.002765)
Output for 4.4.3
float(0.001703) float(0.0026539999999999)
Output for 4.4.2
float(0.001467) float(0.0025400000000001)
Output for 4.4.1
float(0.0014970000000001) float(0.002752)
Output for 4.4.0
float(0.001679) float(0.0027)
Output for 4.3.11
float(0.001523) float(0.002652)
Output for 4.3.10
float(0.001519) float(0.00276)
Output for 4.3.9
float(0.001505) float(0.003848)
Output for 4.3.8
float(0.001499) float(0.00386)
Output for 4.3.7
float(0.002091) float(0.004245)
Output for 4.3.6
float(0.001539) float(0.003816)
Output for 4.3.5
float(0.001611) float(0.003887)
Output for 4.3.4
float(0.001464) float(0.0036)
Output for 4.3.3
float(0.001613) float(0.003916)
Output for 4.3.2
float(0.001491) float(0.004612)
Output for 4.3.1
float(0.001484) float(0.004227)
Output for 4.3.0
float(0.001657) float(0.005452)