3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { bar(); } function bar() { baz(); } function baz() { boom(); } function boom() { return false; } function test($n) { for ($i = 0; $i < $n; $i++) { foo(); } } $n = 1000000; $t = microtime(true); test($n); echo (microtime(true) - $t)*1000000/$n . ' us/iteration';
Output for 8.2.9
0.040771007537842 us/iteration
Output for 8.2.8
0.040814161300659 us/iteration
Output for 8.2.7
0.040673017501831 us/iteration
Output for 8.2.6
0.04115891456604 us/iteration
Output for 8.2.5
0.040789842605591 us/iteration
Output for 8.2.4
0.040871143341064 us/iteration
Output for 8.2.3
0.046579122543335 us/iteration
Output for 8.2.2
0.041038990020752 us/iteration
Output for 8.2.1
0.040388822555542 us/iteration
Output for 8.2.0
0.040614128112793 us/iteration
Output for 8.1.22
0.045911073684692 us/iteration
Output for 8.1.21
0.045593023300171 us/iteration
Output for 8.1.20
0.045670032501221 us/iteration
Output for 8.1.19
0.045862913131714 us/iteration
Output for 8.1.18
0.045365810394287 us/iteration
Output for 8.1.17
0.045909881591797 us/iteration
Output for 8.1.16
0.045629978179932 us/iteration
Output for 8.1.15
0.045817136764526 us/iteration
Output for 8.1.14
0.045834064483643 us/iteration
Output for 8.1.13
0.04560399055481 us/iteration
Output for 8.1.12
0.045161008834839 us/iteration
Output for 8.1.11
0.04856014251709 us/iteration
Output for 8.1.10
0.045751094818115 us/iteration
Output for 8.1.9
0.045835018157959 us/iteration
Output for 8.1.8
0.045894861221313 us/iteration
Output for 8.1.7
0.045596837997437 us/iteration
Output for 8.1.6
0.045749187469482 us/iteration
Output for 8.1.5
0.045893907546997 us/iteration
Output for 8.1.4
0.045841217041016 us/iteration
Output for 8.1.3
0.045565843582153 us/iteration
Output for 8.1.2
0.046113014221191 us/iteration
Output for 8.1.1
0.045979022979736 us/iteration
Output for 8.1.0
0.04633903503418 us/iteration
Output for 8.0.30
0.048096179962158 us/iteration
Output for 8.0.29
0.047311067581177 us/iteration
Output for 8.0.28
0.04823899269104 us/iteration
Output for 8.0.27
0.047875881195068 us/iteration
Output for 8.0.26
0.048297882080078 us/iteration
Output for 8.0.25
0.048828125 us/iteration
Output for 8.0.24
0.048842906951904 us/iteration
Output for 8.0.23
0.046581029891968 us/iteration
Output for 8.0.22
0.046714067459106 us/iteration
Output for 8.0.21
0.046137094497681 us/iteration
Output for 8.0.20
0.0469069480896 us/iteration
Output for 8.0.19
0.045790195465088 us/iteration
Output for 8.0.18
0.046363830566406 us/iteration
Output for 8.0.17
0.046499967575073 us/iteration
Output for 8.0.16
0.045380115509033 us/iteration
Output for 8.0.15
0.046689033508301 us/iteration
Output for 8.0.14
0.046565055847168 us/iteration
Output for 8.0.13
0.046482086181641 us/iteration
Output for 8.0.12
0.045775890350342 us/iteration
Output for 8.0.11
0.046989917755127 us/iteration
Output for 8.0.10
0.047035217285156 us/iteration
Output for 8.0.9
0.046982049942017 us/iteration
Output for 8.0.8
0.046200037002563 us/iteration
Output for 8.0.7
0.046328067779541 us/iteration
Output for 8.0.6
0.047830104827881 us/iteration
Output for 8.0.5
0.048858880996704 us/iteration
Output for 8.0.3
0.049421072006226 us/iteration
Output for 8.0.2
0.047597169876099 us/iteration
Output for 8.0.1
0.048380851745605 us/iteration
Output for 8.0.0
0.04825496673584 us/iteration
Output for 7.4.33
0.047359943389893 us/iteration
Output for 7.4.32
0.047563791275024 us/iteration
Output for 7.4.30
0.047749042510986 us/iteration
Output for 7.4.29
0.047575950622559 us/iteration
Output for 7.4.28
0.047710180282593 us/iteration
Output for 7.4.27
0.047914028167725 us/iteration
Output for 7.4.26
0.047389030456543 us/iteration
Output for 7.4.25
0.047869920730591 us/iteration
Output for 7.4.24
0.047688007354736 us/iteration
Output for 7.4.23
0.047568082809448 us/iteration
Output for 7.4.22
0.048202037811279 us/iteration
Output for 7.4.21
0.047688961029053 us/iteration
Output for 7.4.20
0.047281980514526 us/iteration
Output for 7.4.19
0.047898054122925 us/iteration
Output for 7.4.18
0.049137115478516 us/iteration
Output for 7.4.16
0.049005031585693 us/iteration
Output for 7.4.15
0.047945976257324 us/iteration
Output for 7.4.14
0.047734975814819 us/iteration
Output for 7.4.13
0.047768115997314 us/iteration
Output for 7.4.12
0.047259092330933 us/iteration
Output for 7.4.11
0.047733068466187 us/iteration
Output for 7.4.10
0.048861980438232 us/iteration
Output for 7.4.9
0.047931909561157 us/iteration
Output for 7.4.8
0.048362970352173 us/iteration
Output for 7.4.7
0.051231145858765 us/iteration
Output for 7.4.6
0.048410892486572 us/iteration
Output for 7.4.5
0.047926902770996 us/iteration
Output for 7.4.4
0.048015117645264 us/iteration
Output for 7.4.3
0.047343969345093 us/iteration
Output for 7.4.2
0.047474145889282 us/iteration
Output for 7.4.1
0.047590970993042 us/iteration
Output for 7.4.0
0.047680854797363 us/iteration
Output for 7.3.33
0.04290509223938 us/iteration
Output for 7.3.32
0.04355788230896 us/iteration
Output for 7.3.31
0.046372890472412 us/iteration
Output for 7.3.30
0.043186902999878 us/iteration
Output for 7.3.29
0.043188095092773 us/iteration
Output for 7.3.28
0.043693065643311 us/iteration
Output for 7.3.27
0.043483018875122 us/iteration
Output for 7.3.26
0.043560028076172 us/iteration
Output for 7.3.25
0.043793916702271 us/iteration
Output for 7.3.24
0.043601989746094 us/iteration
Output for 7.3.23
0.043446063995361 us/iteration
Output for 7.3.22
0.04406213760376 us/iteration
Output for 7.3.21
0.043813943862915 us/iteration
Output for 7.3.20
0.044136762619019 us/iteration
Output for 7.3.19
0.043759107589722 us/iteration
Output for 7.3.18
0.043867111206055 us/iteration
Output for 7.3.17
0.043344974517822 us/iteration
Output for 7.3.16
0.044358968734741 us/iteration
Output for 7.3.15
0.044340133666992 us/iteration
Output for 7.3.14
0.043390989303589 us/iteration
Output for 7.3.13
0.042957067489624 us/iteration
Output for 7.3.12
0.042601108551025 us/iteration
Output for 7.3.11
0.042457103729248 us/iteration
Output for 7.3.10
0.042229175567627 us/iteration
Output for 7.3.9
0.042695045471191 us/iteration
Output for 7.3.8
0.042265892028809 us/iteration
Output for 7.3.7
0.042864084243774 us/iteration
Output for 7.3.6
0.042680978775024 us/iteration
Output for 7.3.5
0.042675971984863 us/iteration
Output for 7.3.4
0.043156862258911 us/iteration
Output for 7.3.3
0.042565107345581 us/iteration
Output for 7.3.2
0.043146848678589 us/iteration
Output for 7.3.1
0.045106887817383 us/iteration
Output for 7.3.0
0.042618989944458 us/iteration
Output for 7.2.34
0.056384086608887 us/iteration
Output for 7.2.33
0.056414127349854 us/iteration
Output for 7.2.32
0.055415868759155 us/iteration
Output for 7.2.31
0.055337190628052 us/iteration
Output for 7.2.30
0.055347919464111 us/iteration
Output for 7.2.29
0.055298089981079 us/iteration
Output for 7.2.28
0.055322170257568 us/iteration
Output for 7.2.27
0.055283069610596 us/iteration
Output for 7.2.26
0.055749177932739 us/iteration
Output for 7.2.25
0.055382013320923 us/iteration
Output for 7.2.24
0.055279970169067 us/iteration
Output for 7.2.23
0.055484056472778 us/iteration
Output for 7.2.22
0.05535101890564 us/iteration
Output for 7.2.21
0.055430889129639 us/iteration
Output for 7.2.20
0.05722188949585 us/iteration
Output for 7.2.19
0.055935859680176 us/iteration
Output for 7.2.18
0.061888933181763 us/iteration
Output for 7.2.17
0.055394887924194 us/iteration
Output for 7.2.16
0.055421113967896 us/iteration
Output for 7.2.15
0.055282115936279 us/iteration
Output for 7.2.14
0.055233955383301 us/iteration
Output for 7.2.13
0.054954051971436 us/iteration
Output for 7.2.12
0.055345058441162 us/iteration
Output for 7.2.11
0.054836988449097 us/iteration
Output for 7.2.10
0.055292129516602 us/iteration
Output for 7.2.9
0.056136846542358 us/iteration
Output for 7.2.8
0.055101871490479 us/iteration
Output for 7.2.7
0.055629968643188 us/iteration
Output for 7.2.6
0.055483102798462 us/iteration
Output for 7.2.5
0.055012941360474 us/iteration
Output for 7.2.4
0.055246114730835 us/iteration
Output for 7.2.3
0.055497884750366 us/iteration
Output for 7.2.2
0.055206060409546 us/iteration
Output for 7.2.1
0.055521011352539 us/iteration
Output for 7.2.0
0.061192035675049 us/iteration
Output for 7.1.33
0.063336133956909 us/iteration
Output for 7.1.32
0.062925100326538 us/iteration
Output for 7.1.31
0.063348054885864 us/iteration
Output for 7.1.30
0.063927173614502 us/iteration
Output for 7.1.29
0.063962936401367 us/iteration
Output for 7.1.28
0.064206838607788 us/iteration
Output for 7.1.27
0.064340829849243 us/iteration
Output for 7.1.26
0.064324855804443 us/iteration
Output for 7.1.25
0.070768117904663 us/iteration
Output for 7.1.24
0.077422142028809 us/iteration
Output for 7.1.23
0.065181016921997 us/iteration
Output for 7.1.22
0.06381893157959 us/iteration
Output for 7.1.21
0.064502954483032 us/iteration
Output for 7.1.20
0.064387798309326 us/iteration
Output for 7.1.19
0.064274072647095 us/iteration
Output for 7.1.18
0.064625024795532 us/iteration
Output for 7.1.17
0.064543008804321 us/iteration
Output for 7.1.16
0.064447164535522 us/iteration
Output for 7.1.15
0.064986944198608 us/iteration
Output for 7.1.14
0.070627927780151 us/iteration
Output for 7.1.13
0.064387083053589 us/iteration
Output for 7.1.12
0.06403112411499 us/iteration
Output for 7.1.11
0.064267873764038 us/iteration
Output for 7.1.10
0.064709901809692 us/iteration
Output for 7.1.9
0.066184997558594 us/iteration
Output for 7.1.8
0.070307970046997 us/iteration
Output for 7.1.7
0.065778970718384 us/iteration
Output for 7.1.6
0.062686920166016 us/iteration
Output for 7.1.5
0.063300132751465 us/iteration
Output for 7.1.4
0.062401056289673 us/iteration
Output for 7.1.3
0.06330418586731 us/iteration
Output for 7.1.2
0.063347101211548 us/iteration
Output for 7.1.1
0.062508106231689 us/iteration
Output for 7.1.0
0.063551902770996 us/iteration
Output for 7.0.33
0.074325084686279 us/iteration
Output for 7.0.32
0.069244861602783 us/iteration
Output for 7.0.31
0.069808006286621 us/iteration
Output for 7.0.30
0.076766967773438 us/iteration
Output for 7.0.29
0.068384885787964 us/iteration
Output for 7.0.28
0.06862998008728 us/iteration
Output for 7.0.27
0.06827712059021 us/iteration
Output for 7.0.26
0.068612098693848 us/iteration
Output for 7.0.25
0.071192026138306 us/iteration
Output for 7.0.24
0.068665981292725 us/iteration
Output for 7.0.23
0.069613933563232 us/iteration
Output for 7.0.22
0.068067073822021 us/iteration
Output for 7.0.21
0.068058013916016 us/iteration
Output for 7.0.6, 7.0.20
0.067090034484863 us/iteration
Output for 7.0.19
0.069107055664062 us/iteration
Output for 7.0.18
0.069038867950439 us/iteration
Output for 7.0.17
0.069733142852783 us/iteration
Output for 7.0.16
0.072827816009521 us/iteration
Output for 7.0.15
0.071649074554443 us/iteration
Output for 7.0.14
0.069549798965454 us/iteration
Output for 7.0.13
0.069561004638672 us/iteration
Output for 7.0.12
0.070707082748413 us/iteration
Output for 7.0.11
0.069694995880127 us/iteration
Output for 7.0.10
0.068379163742065 us/iteration
Output for 7.0.9
0.069813013076782 us/iteration
Output for 7.0.8
0.069504976272583 us/iteration
Output for 7.0.7
0.069581985473633 us/iteration
Output for 7.0.5
0.070005893707275 us/iteration
Output for 7.0.4
0.067404985427856 us/iteration
Output for 7.0.3
0.069825887680054 us/iteration
Output for 7.0.2
0.066817045211792 us/iteration
Output for 7.0.1
0.068390130996704 us/iteration
Output for 7.0.0
0.069935083389282 us/iteration
Output for 5.6.40
0.14599800109863 us/iteration
Output for 5.6.39
0.14351606369019 us/iteration
Output for 5.6.38
0.1453800201416 us/iteration
Output for 5.6.37
0.14189004898071 us/iteration
Output for 5.6.36
0.14273691177368 us/iteration
Output for 5.6.35
0.15327382087708 us/iteration
Output for 5.6.34
0.14298701286316 us/iteration
Output for 5.6.33
0.16041898727417 us/iteration
Output for 5.6.32
0.16018199920654 us/iteration
Output for 5.6.31
0.14590811729431 us/iteration
Output for 5.6.30
0.14702296257019 us/iteration
Output for 5.6.29
0.16161799430847 us/iteration
Output for 5.6.28
0.14322805404663 us/iteration
Output for 5.6.27
0.16305804252625 us/iteration
Output for 5.6.26
0.14640688896179 us/iteration
Output for 5.6.25
0.14366793632507 us/iteration
Output for 5.6.24
0.14287400245667 us/iteration
Output for 5.6.23
0.14375710487366 us/iteration
Output for 5.6.22
0.14583611488342 us/iteration
Output for 5.6.21
0.14275407791138 us/iteration
Output for 5.6.20
0.16155409812927 us/iteration
Output for 5.6.19
0.14303708076477 us/iteration
Output for 5.6.18
0.14294290542603 us/iteration
Output for 5.6.17
0.14546203613281 us/iteration
Output for 5.6.16
0.14304804801941 us/iteration
Output for 5.6.15
0.16122388839722 us/iteration
Output for 5.6.14
0.14335489273071 us/iteration
Output for 5.6.13
0.14457511901855 us/iteration
Output for 5.6.12
0.14236903190613 us/iteration
Output for 5.6.11
0.14782404899597 us/iteration
Output for 5.6.10
0.15638709068298 us/iteration
Output for 5.6.9
0.14202499389648 us/iteration
Output for 5.6.8
0.14215683937073 us/iteration
Output for 5.6.7
0.14310812950134 us/iteration
Output for 5.6.6
0.14153981208801 us/iteration
Output for 5.6.5
0.14402604103088 us/iteration
Output for 5.6.4
0.14317488670349 us/iteration
Output for 5.6.3
0.1426830291748 us/iteration
Output for 5.6.2
0.14336490631104 us/iteration
Output for 5.6.1
0.14295101165771 us/iteration
Output for 5.6.0
0.14314603805542 us/iteration
Output for 5.5.38
0.15060210227966 us/iteration
Output for 5.5.37
0.14073395729065 us/iteration
Output for 5.5.36
0.14102697372437 us/iteration
Output for 5.5.35
0.14118194580078 us/iteration
Output for 5.5.34
0.14131712913513 us/iteration
Output for 5.5.33
0.14874911308289 us/iteration
Output for 5.5.32
0.14134693145752 us/iteration
Output for 5.5.31
0.14755201339722 us/iteration
Output for 5.5.30
0.15208697319031 us/iteration
Output for 5.5.29
0.14184880256653 us/iteration
Output for 5.5.28
0.14137697219849 us/iteration
Output for 5.5.27
0.14664316177368 us/iteration
Output for 5.5.26
0.14090800285339 us/iteration
Output for 5.5.25
0.14114499092102 us/iteration
Output for 5.5.24
0.14026403427124 us/iteration
Output for 5.5.23
0.14153003692627 us/iteration
Output for 5.5.22
0.14146614074707 us/iteration
Output for 5.5.21
0.14263415336609 us/iteration
Output for 5.5.20
0.14090299606323 us/iteration
Output for 5.5.19
0.14021182060242 us/iteration
Output for 5.5.18
0.14038586616516 us/iteration
Output for 5.5.17
0.13913702964783 us/iteration
Output for 5.5.16
0.14032697677612 us/iteration
Output for 5.5.15
0.14088082313538 us/iteration
Output for 5.5.14
0.14112091064453 us/iteration
Output for 5.5.13
0.14108300209045 us/iteration
Output for 5.5.12
0.14217185974121 us/iteration
Output for 5.5.11
0.13988709449768 us/iteration
Output for 5.5.10
0.14232516288757 us/iteration
Output for 5.5.9
0.14151978492737 us/iteration
Output for 5.5.8
0.14127898216248 us/iteration
Output for 5.5.7
0.14081001281738 us/iteration
Output for 5.5.6
0.14154314994812 us/iteration
Output for 5.5.5
0.13981199264526 us/iteration
Output for 5.5.4
0.15654802322388 us/iteration
Output for 5.5.3
0.14311504364014 us/iteration
Output for 5.5.2
0.14163112640381 us/iteration
Output for 5.5.1
0.14119100570679 us/iteration
Output for 5.5.0
0.14484000205994 us/iteration
Output for 5.4.45
0.15420317649841 us/iteration
Output for 5.4.44
0.15846705436707 us/iteration
Output for 5.4.43
0.14409518241882 us/iteration
Output for 5.4.42
0.1531138420105 us/iteration
Output for 5.4.41
0.1450629234314 us/iteration
Output for 5.4.40
0.14360690116882 us/iteration
Output for 5.4.39
0.14420294761658 us/iteration
Output for 5.4.38
0.15515613555908 us/iteration
Output for 5.4.37
0.14398503303528 us/iteration
Output for 5.4.36
0.15460395812988 us/iteration
Output for 5.4.35
0.14825701713562 us/iteration
Output for 5.4.34
0.1438570022583 us/iteration
Output for 5.4.33
0.14415812492371 us/iteration
Output for 5.4.32
0.14377880096436 us/iteration
Output for 5.4.31
0.1647789478302 us/iteration
Output for 5.4.30
0.1580638885498 us/iteration
Output for 5.4.29
0.14397001266479 us/iteration
Output for 5.4.28
0.14380407333374 us/iteration
Output for 5.4.27
0.16317701339722 us/iteration
Output for 5.4.26
0.15654897689819 us/iteration
Output for 5.4.25
0.16271495819092 us/iteration
Output for 5.4.24
0.15410900115967 us/iteration
Output for 5.4.23
0.16897201538086 us/iteration
Output for 5.4.22
0.17163395881653 us/iteration
Output for 5.4.21
0.1623809337616 us/iteration
Output for 5.4.20
0.1619758605957 us/iteration
Output for 5.4.19
0.16316819190979 us/iteration
Output for 5.4.18
0.1620020866394 us/iteration
Output for 5.4.14, 5.4.17
0.14340090751648 us/iteration
Output for 5.4.16
0.16568994522095 us/iteration
Output for 5.4.15
0.14638209342957 us/iteration
Output for 5.4.13
0.15357804298401 us/iteration
Output for 5.4.12
0.14347004890442 us/iteration
Output for 5.4.11
0.14361095428467 us/iteration
Output for 5.4.10
0.14763498306274 us/iteration
Output for 5.4.9
0.16064190864563 us/iteration
Output for 5.4.8
0.14397692680359 us/iteration
Output for 5.4.7
0.14539098739624 us/iteration
Output for 5.4.6
0.14613199234009 us/iteration
Output for 5.4.5
0.14534711837769 us/iteration
Output for 5.4.4
0.14785504341125 us/iteration
Output for 5.4.3
0.14911317825317 us/iteration
Output for 5.4.2
0.15005111694336 us/iteration
Output for 5.4.1
0.15091300010681 us/iteration
Output for 5.4.0
0.15317106246948 us/iteration
Output for 5.3.29
0.25177502632141 us/iteration
Output for 5.3.28
0.2461371421814 us/iteration
Output for 5.3.27
0.25940012931824 us/iteration
Output for 5.3.26
0.25455021858215 us/iteration
Output for 5.3.25
0.25148105621338 us/iteration
Output for 5.3.24
0.26126599311829 us/iteration
Output for 5.3.23
0.24618101119995 us/iteration
Output for 5.3.22
0.25045800209045 us/iteration
Output for 5.3.21
0.2529091835022 us/iteration
Output for 5.3.20
0.2596549987793 us/iteration
Output for 5.3.19
0.26698017120361 us/iteration
Output for 5.3.18
0.24307417869568 us/iteration
Output for 5.3.17
0.25954103469849 us/iteration
Output for 5.3.16
0.25356101989746 us/iteration
Output for 5.3.15
0.25728702545166 us/iteration
Output for 5.3.14
0.26685905456543 us/iteration
Output for 5.3.13
0.25303506851196 us/iteration
Output for 5.3.12
0.25283217430115 us/iteration
Output for 5.3.11
0.25771498680115 us/iteration
Output for 5.3.10
0.26556801795959 us/iteration
Output for 5.3.9
0.25493717193604 us/iteration
Output for 5.3.8
0.25752902030945 us/iteration
Output for 5.3.7
0.25707221031189 us/iteration
Output for 5.3.6
0.25861620903015 us/iteration
Output for 5.3.5
0.25506114959717 us/iteration
Output for 5.3.4
0.25020098686218 us/iteration
Output for 5.3.3
0.26458811759949 us/iteration
Output for 5.3.2
0.27211499214172 us/iteration
Output for 5.3.1
0.25767207145691 us/iteration
Output for 5.3.0
0.25678110122681 us/iteration

preferences:
51.39 ms | 938 KiB | 5 Q