3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 7.3.1
0.082808017730713 us/iteration
Output for 7.3.0
0.081083059310913 us/iteration
Output for 7.2.13
0.0989990234375 us/iteration
Output for 7.2.12
0.11787414550781 us/iteration
Output for 7.2.11
0.097135066986084 us/iteration
Output for 7.2.10
0.097431182861328 us/iteration
Output for 7.2.9
0.097872018814087 us/iteration
Output for 7.2.8
0.096946001052856 us/iteration
Output for 7.2.7
0.098446846008301 us/iteration
Output for 7.2.6
0.096865892410278 us/iteration
Output for 7.2.5
0.10068392753601 us/iteration
Output for 7.2.4
0.097259044647217 us/iteration
Output for 7.2.3
0.10880088806152 us/iteration
Output for 7.2.2
0.098146915435791 us/iteration
Output for 7.2.1
0.095777034759521 us/iteration
Output for 7.2.0
0.096258878707886 us/iteration
Output for 7.1.25
0.18800902366638 us/iteration
Output for 7.1.7
0.072108030319214 us/iteration
Output for 7.1.6
0.07548999786377 us/iteration
Output for 7.1.5
0.06826114654541 us/iteration
Output for 7.1.4
0.06912899017334 us/iteration
Output for 7.1.3
0.072635889053345 us/iteration
Output for 7.1.2
0.071429014205933 us/iteration
Output for 7.1.1
0.10163497924805 us/iteration
Output for 7.1.0
0.068571090698242 us/iteration
Output for 7.0.20
0.077621936798096 us/iteration
Output for 7.0.19
0.089128017425537 us/iteration
Output for 7.0.18
0.08863091468811 us/iteration
Output for 7.0.17
0.087159872055054 us/iteration
Output for 7.0.16
0.074339866638184 us/iteration
Output for 7.0.15
0.089619159698486 us/iteration
Output for 7.0.14
0.095237016677856 us/iteration
Output for 7.0.13
0.086283922195435 us/iteration
Output for 7.0.12
0.093403816223145 us/iteration
Output for 7.0.11
0.097128868103027 us/iteration
Output for 7.0.10
0.077020168304443 us/iteration
Output for 7.0.9
0.077245950698853 us/iteration
Output for 7.0.8
0.07556414604187 us/iteration
Output for 7.0.7
0.075146198272705 us/iteration
Output for 7.0.6
0.095914125442505 us/iteration
Output for 7.0.5
0.087737083435059 us/iteration
Output for 7.0.4
0.079874038696289 us/iteration
Output for 7.0.3
0.086858987808228 us/iteration
Output for 7.0.2
0.12153100967407 us/iteration
Output for 7.0.1
0.090286016464233 us/iteration
Output for 7.0.0
0.086340188980103 us/iteration
Output for hhvm-3.17.3
0.35673999786377 us/iteration
Output for hhvm-3.15.4
0.34117317199707 us/iteration
Output for hhvm-3.13.2
0.29783701896667 us/iteration
Output for hhvm-3.12.14
0.30518817901611 us/iteration
Output for hhvm-3.11.1
0.31152701377869 us/iteration
Output for hhvm-3.10.1
0.36689305305481 us/iteration
Output for 5.6.30
0.22967505455017 us/iteration
Output for 5.6.29
0.16725015640259 us/iteration
Output for 5.6.28
0.17722201347351 us/iteration
Output for 5.6.27
0.16199398040771 us/iteration
Output for 5.6.26
0.15903520584106 us/iteration
Output for 5.6.25
0.18579792976379 us/iteration
Output for 5.6.24
0.1815710067749 us/iteration
Output for 5.6.23
0.16356611251831 us/iteration
Output for 5.6.22
0.19669699668884 us/iteration
Output for 5.6.21
0.18624305725098 us/iteration
Output for 5.6.20
0.16648483276367 us/iteration
Output for 5.6.19
0.16666102409363 us/iteration
Output for 5.6.18
0.18514180183411 us/iteration
Output for 5.6.17
0.18390607833862 us/iteration
Output for 5.6.16
0.15910792350769 us/iteration
Output for 5.6.15
0.18585896492004 us/iteration
Output for 5.6.14
0.18896389007568 us/iteration
Output for 5.6.13
0.1570680141449 us/iteration
Output for 5.6.12
0.20729994773865 us/iteration
Output for 5.6.11
0.1790509223938 us/iteration
Output for 5.6.10
0.18651103973389 us/iteration
Output for 5.6.9
0.18251800537109 us/iteration
Output for 5.6.8
0.16659379005432 us/iteration
Output for 5.6.7
0.18281006813049 us/iteration
Output for 5.6.6
0.17102718353271 us/iteration
Output for 5.6.5
0.16657185554504 us/iteration
Output for 5.6.4
0.16649413108826 us/iteration
Output for 5.6.3
0.16639304161072 us/iteration
Output for 5.6.2
0.18672585487366 us/iteration
Output for 5.6.1
0.25662183761597 us/iteration
Output for 5.6.0
0.20163989067078 us/iteration
Output for 5.5.38
0.17212414741516 us/iteration
Output for 5.5.29, 5.5.37
0.19326186180115 us/iteration
Output for 5.5.36
0.18454194068909 us/iteration
Output for 5.5.35
0.20478510856628 us/iteration
Output for 5.5.34
0.17519688606262 us/iteration
Output for 5.5.33
0.17207288742065 us/iteration
Output for 5.5.32
0.21523213386536 us/iteration
Output for 5.5.31
0.20431709289551 us/iteration
Output for 5.5.30
0.1906578540802 us/iteration
Output for 5.5.28
0.17775416374207 us/iteration
Output for 5.5.27
0.17872309684753 us/iteration
Output for 5.5.26
0.22802996635437 us/iteration
Output for 5.5.25
0.18945407867432 us/iteration
Output for 5.5.24
0.1965811252594 us/iteration
Output for 5.5.23
0.17808794975281 us/iteration
Output for 5.5.22
0.18097686767578 us/iteration
Output for 5.5.21
0.19105315208435 us/iteration
Output for 5.5.20
0.18770503997803 us/iteration
Output for 5.5.19
0.18992304801941 us/iteration
Output for 5.5.18
0.18035078048706 us/iteration
Output for 5.5.16
0.20279598236084 us/iteration
Output for 5.5.15
0.1827130317688 us/iteration
Output for 5.5.14
0.18170809745789 us/iteration
Output for 5.5.13
0.18208885192871 us/iteration
Output for 5.5.12
0.18564009666443 us/iteration
Output for 5.5.11
0.19250011444092 us/iteration
Output for 5.5.10
0.1726610660553 us/iteration
Output for 5.5.9
0.21882104873657 us/iteration
Output for 5.5.8
0.16504907608032 us/iteration
Output for 5.5.7
0.17132306098938 us/iteration
Output for 5.5.6
0.18646907806396 us/iteration
Output for 5.5.5
0.20860290527344 us/iteration
Output for 5.5.4
0.19432210922241 us/iteration
Output for 5.5.3
0.23126792907715 us/iteration
Output for 5.5.2
0.203458070755 us/iteration
Output for 5.5.1
0.19203901290894 us/iteration
Output for 5.5.0
0.18637800216675 us/iteration
Output for 5.4.45
0.18231701850891 us/iteration
Output for 5.4.44
0.1845371723175 us/iteration
Output for 5.4.43
0.16849899291992 us/iteration
Output for 5.4.42
0.201003074646 us/iteration
Output for 5.4.41
0.19772982597351 us/iteration
Output for 5.4.40
0.18633389472961 us/iteration
Output for 5.4.39
0.19132494926453 us/iteration
Output for 5.4.38
0.18905377388 us/iteration
Output for 5.4.37
0.18319296836853 us/iteration
Output for 5.4.36
0.2091019153595 us/iteration
Output for 5.4.35
0.20759415626526 us/iteration
Output for 5.4.34
0.19725203514099 us/iteration
Output for 5.4.32
0.17315316200256 us/iteration
Output for 5.4.31
0.19632697105408 us/iteration
Output for 5.4.30
0.16754388809204 us/iteration
Output for 5.4.29
0.19934296607971 us/iteration
Output for 5.4.28
0.21570611000061 us/iteration
Output for 5.4.27
0.201336145401 us/iteration
Output for 5.4.26
0.18410706520081 us/iteration
Output for 5.4.25
0.18364596366882 us/iteration
Output for 5.4.24
0.18943214416504 us/iteration
Output for 5.4.23
0.18076491355896 us/iteration
Output for 5.4.22
0.1779510974884 us/iteration
Output for 5.4.21
0.18525791168213 us/iteration
Output for 5.4.20
0.19060111045837 us/iteration
Output for 5.4.19
0.18344593048096 us/iteration
Output for 5.4.18
0.19143605232239 us/iteration
Output for 5.4.17
0.16987991333008 us/iteration
Output for 5.4.16
0.25294899940491 us/iteration
Output for 5.4.15
0.20829606056213 us/iteration
Output for 5.4.14
0.20087504386902 us/iteration
Output for 5.4.13
0.18017816543579 us/iteration
Output for 5.4.12
0.17575883865356 us/iteration
Output for 5.4.11
0.21505403518677 us/iteration
Output for 5.4.10
0.2817120552063 us/iteration
Output for 5.4.9
0.20046019554138 us/iteration
Output for 5.4.8
0.19273996353149 us/iteration
Output for 5.4.7
0.20790886878967 us/iteration
Output for 5.4.6
0.22036409378052 us/iteration
Output for 5.4.5
0.18707394599915 us/iteration
Output for 5.4.4
0.1879870891571 us/iteration
Output for 5.4.3
0.19011998176575 us/iteration
Output for 5.4.2
0.18904590606689 us/iteration
Output for 5.4.1
0.19481515884399 us/iteration
Output for 5.4.0
0.18533301353455 us/iteration
Output for 5.3.29
0.26821184158325 us/iteration
Output for 5.3.28
0.2293438911438 us/iteration
Output for 5.3.27
0.20945906639099 us/iteration
Output for 5.3.26
0.23350596427917 us/iteration
Output for 5.3.25
0.24712181091309 us/iteration
Output for 5.3.24
0.2497239112854 us/iteration
Output for 5.3.23
0.2203688621521 us/iteration
Output for 5.3.22
0.2839138507843 us/iteration
Output for 5.3.21
0.24346780776978 us/iteration
Output for 5.3.20
0.27059507369995 us/iteration
Output for 5.3.19
0.22953391075134 us/iteration
Output for 5.3.18
0.25970816612244 us/iteration
Output for 5.3.17
0.22431302070618 us/iteration
Output for 5.3.16
0.24597692489624 us/iteration
Output for 5.3.15
0.2348210811615 us/iteration
Output for 5.3.14
0.23092007637024 us/iteration
Output for 5.3.13
0.24408888816833 us/iteration
Output for 5.3.12
0.23938989639282 us/iteration
Output for 5.3.11
0.23522782325745 us/iteration
Output for 5.3.10
0.22553706169128 us/iteration
Output for 5.3.9
0.22484087944031 us/iteration
Output for 5.3.8
0.22823190689087 us/iteration
Output for 5.3.7
0.23162794113159 us/iteration
Output for 5.3.6
0.24130892753601 us/iteration
Output for 5.3.5
0.21677994728088 us/iteration
Output for 5.3.4
0.24413204193115 us/iteration
Output for 5.3.3
0.26795291900635 us/iteration
Output for 5.3.2
0.22126197814941 us/iteration
Output for 5.3.1
0.2297580242157 us/iteration
Output for 5.3.0
0.24360394477844 us/iteration
Output for 5.2.17
0.37762880325317 us/iteration
Output for 5.2.16
0.40066194534302 us/iteration
Output for 5.2.15
0.37197113037109 us/iteration
Output for 5.2.14
0.36808204650879 us/iteration
Output for 5.2.13
0.34853386878967 us/iteration
Output for 5.2.12
0.52554392814636 us/iteration
Output for 5.2.11
0.34225511550903 us/iteration
Output for 5.2.10
0.3586061000824 us/iteration
Output for 5.2.9
0.36404705047607 us/iteration
Output for 5.2.8
0.34166812896729 us/iteration
Output for 5.2.7
0.37194585800171 us/iteration
Output for 5.2.6
0.36876487731934 us/iteration
Output for 5.2.5
0.31645607948303 us/iteration
Output for 5.2.4
0.36191701889038 us/iteration
Output for 5.2.3
0.38909912109375 us/iteration
Output for 5.2.2
0.35999894142151 us/iteration
Output for 5.2.1
0.35942411422729 us/iteration
Output for 5.2.0
0.33954000473022 us/iteration
Output for 5.1.6
0.35651206970215 us/iteration
Output for 5.1.5
0.32351803779602 us/iteration
Output for 5.1.4
0.34645009040833 us/iteration
Output for 5.1.3
0.31864190101624 us/iteration
Output for 5.1.2
0.35061192512512 us/iteration
Output for 5.1.1
0.37930512428284 us/iteration
Output for 5.1.0
0.34985089302063 us/iteration
Output for 5.0.5
0.58655500411987 us/iteration
Output for 5.0.4
0.58790898323059 us/iteration
Output for 5.0.3
0.54071497917175 us/iteration
Output for 5.0.2
0.50635004043579 us/iteration
Output for 5.0.1
0.53372406959534 us/iteration
Output for 5.0.0
0.56228184700012 us/iteration
Output for 4.4.9
0.619406 us/iteration
Output for 4.4.8
0.579712 us/iteration
Output for 4.4.7
0.574638 us/iteration
Output for 4.4.6
0.625974 us/iteration
Output for 4.4.5
0.608155 us/iteration
Output for 4.4.4
0.532572 us/iteration
Output for 4.4.3
0.577153 us/iteration
Output for 4.4.2
0.574825 us/iteration
Output for 4.4.1
0.558965 us/iteration
Output for 4.4.0
0.630836 us/iteration
Output for 4.3.11
0.582928 us/iteration
Output for 4.3.10
0.630295 us/iteration
Output for 4.3.9
0.575179 us/iteration
Output for 4.3.8
0.612986 us/iteration
Output for 4.3.7
0.556771 us/iteration
Output for 4.3.6
0.57149 us/iteration
Output for 4.3.5
0.57018 us/iteration
Output for 4.3.4
0.542461 us/iteration
Output for 4.3.3
0.528523 us/iteration
Output for 4.3.2
0.531718 us/iteration
Output for 4.3.1
0.556822 us/iteration
Output for 4.3.0
0.549655 us/iteration