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 7.4.1
0.12459897994995 us/iteration
Output for 7.4.0
0.12533712387085 us/iteration
Output for 7.3.13
0.1236720085144 us/iteration
Output for 7.3.12
0.12352395057678 us/iteration
Output for 7.3.11
0.11195397377014 us/iteration
Output for 7.3.10
0.09514594078064 us/iteration
Output for 7.3.9
0.086822032928467 us/iteration
Output for 7.3.8
0.084271192550659 us/iteration
Output for 7.3.7
0.085093021392822 us/iteration
Output for 7.3.6
0.079322099685669 us/iteration
Output for 7.3.5
0.081642866134644 us/iteration
Output for 7.3.4
0.091086149215698 us/iteration
Output for 7.3.3
0.10759401321411 us/iteration
Output for 7.3.2
0.086929082870483 us/iteration
Output for 7.3.1
0.11064410209656 us/iteration
Output for 7.3.0
0.08079981803894 us/iteration
Output for 7.2.26
0.1421070098877 us/iteration
Output for 7.2.25
0.14197111129761 us/iteration
Output for 7.2.24
0.10127091407776 us/iteration
Output for 7.2.23
0.11944007873535 us/iteration
Output for 7.2.22
0.10824298858643 us/iteration
Output for 7.2.21
0.10273694992065 us/iteration
Output for 7.2.20
0.097732067108154 us/iteration
Output for 7.2.19
0.10507202148438 us/iteration
Output for 7.2.18
0.10753703117371 us/iteration
Output for 7.2.17
0.096331119537354 us/iteration
Output for 7.2.16
0.097980976104736 us/iteration
Output for 7.2.15
0.098496913909912 us/iteration
Output for 7.2.14
0.1003270149231 us/iteration
Output for 7.2.13
0.098097801208496 us/iteration
Output for 7.2.12
0.14249801635742 us/iteration
Output for 7.2.11
0.13506579399109 us/iteration
Output for 7.2.10
0.10773181915283 us/iteration
Output for 7.2.9
0.11289882659912 us/iteration
Output for 7.2.8
0.11113119125366 us/iteration
Output for 7.2.7
0.11557197570801 us/iteration
Output for 7.2.6
0.10823202133179 us/iteration
Output for 7.2.5
0.1074230670929 us/iteration
Output for 7.2.4
0.12598299980164 us/iteration
Output for 7.2.3
0.096642017364502 us/iteration
Output for 7.2.2
0.10041499137878 us/iteration
Output for 7.2.1
0.092961072921753 us/iteration
Output for 7.2.0
0.13511180877686 us/iteration
Output for 7.1.33
0.18124485015869 us/iteration
Output for 7.1.32
0.18730020523071 us/iteration
Output for 7.1.31
0.18378210067749 us/iteration
Output for 7.1.30
0.18506503105164 us/iteration
Output for 7.1.29
0.18225193023682 us/iteration
Output for 7.1.28
0.1872820854187 us/iteration
Output for 7.1.27
0.18389296531677 us/iteration
Output for 7.1.26
0.18803405761719 us/iteration
Output for 7.1.25
0.1844630241394 us/iteration
Output for 7.1.24
0.19863820075989 us/iteration
Output for 7.1.23
0.18264603614807 us/iteration
Output for 7.1.22
0.19162607192993 us/iteration
Output for 7.1.21
0.19468998908997 us/iteration
Output for 7.1.20
0.18092799186707 us/iteration
Output for 7.1.19
0.18301296234131 us/iteration
Output for 7.1.18
0.18111801147461 us/iteration
Output for 7.1.17
0.18269395828247 us/iteration
Output for 7.1.16
0.18865299224854 us/iteration
Output for 7.1.15
0.19344806671143 us/iteration
Output for 7.1.14
0.18306994438171 us/iteration
Output for 7.1.13
0.17406702041626 us/iteration
Output for 7.1.12
0.18222904205322 us/iteration
Output for 7.1.11
0.18508195877075 us/iteration
Output for 7.1.10
0.18183588981628 us/iteration
Output for 7.1.9
0.20232486724854 us/iteration
Output for 7.1.8
0.19132494926453 us/iteration
Output for 7.1.7
0.18688178062439 us/iteration
Output for 7.1.6
0.1944899559021 us/iteration
Output for 7.1.5
0.18399596214294 us/iteration
Output for 7.1.4
0.18824100494385 us/iteration
Output for 7.1.3
0.18397808074951 us/iteration
Output for 7.1.2
0.18366312980652 us/iteration
Output for 7.1.1
0.18760800361633 us/iteration
Output for 7.1.0
0.19764113426208 us/iteration
Output for 7.0.33
0.17988514900208 us/iteration
Output for 7.0.32
0.17814707756042 us/iteration
Output for 7.0.31
0.17550706863403 us/iteration
Output for 7.0.30
0.17990589141846 us/iteration
Output for 7.0.29
0.18533396720886 us/iteration
Output for 7.0.28
0.20694899559021 us/iteration
Output for 7.0.27
0.18801593780518 us/iteration
Output for 7.0.26
0.17898106575012 us/iteration
Output for 7.0.25
0.18442893028259 us/iteration
Output for 7.0.24
0.18863105773926 us/iteration
Output for 7.0.23
0.20328879356384 us/iteration
Output for 7.0.22
0.19121098518372 us/iteration
Output for 7.0.21
0.173672914505 us/iteration
Output for 7.0.20
0.19352102279663 us/iteration
Output for 7.0.19
0.17621803283691 us/iteration
Output for 7.0.18
0.20099997520447 us/iteration
Output for 7.0.17
0.17325115203857 us/iteration
Output for 7.0.16
0.18118095397949 us/iteration
Output for 7.0.15
0.19941806793213 us/iteration
Output for 7.0.14
0.18215918540955 us/iteration
Output for 7.0.13
0.18413281440735 us/iteration
Output for 7.0.12
0.17922306060791 us/iteration
Output for 7.0.11
0.20024800300598 us/iteration
Output for 7.0.10
0.19158911705017 us/iteration
Output for 7.0.9
0.18564891815186 us/iteration
Output for 7.0.8
0.19714212417603 us/iteration
Output for 7.0.7
0.18959403038025 us/iteration
Output for 7.0.6
0.17751812934875 us/iteration
Output for 7.0.5
0.20576310157776 us/iteration
Output for 7.0.4
0.19261193275452 us/iteration
Output for 7.0.3
0.19923114776611 us/iteration
Output for 7.0.2
0.18809700012207 us/iteration
Output for 7.0.1
0.19099903106689 us/iteration
Output for 7.0.0
0.19514799118042 us/iteration
Output for 5.6.40
0.34078097343445 us/iteration
Output for 5.6.39
0.36754179000854 us/iteration
Output for 5.6.38
0.34587788581848 us/iteration
Output for 5.6.37
0.36620497703552 us/iteration
Output for 5.6.36
0.37650609016418 us/iteration
Output for 5.6.35
0.3618540763855 us/iteration
Output for 5.6.34
0.33457899093628 us/iteration
Output for 5.6.33
0.36711287498474 us/iteration
Output for 5.6.32
0.34518694877625 us/iteration
Output for 5.6.31
0.37984895706177 us/iteration
Output for 5.6.30
0.35505294799805 us/iteration
Output for 5.6.29
0.34357619285583 us/iteration
Output for 5.6.28
0.33166003227234 us/iteration
Output for 5.6.27
0.34321713447571 us/iteration
Output for 5.6.26
0.37228608131409 us/iteration
Output for 5.6.25
0.38038897514343 us/iteration
Output for 5.6.24
0.34162092208862 us/iteration
Output for 5.6.23
0.36477780342102 us/iteration
Output for 5.6.22
0.37175488471985 us/iteration
Output for 5.6.21
0.33424210548401 us/iteration
Output for 5.6.20
0.37184309959412 us/iteration
Output for 5.6.19
0.3332359790802 us/iteration
Output for 5.6.18
0.3679301738739 us/iteration
Output for 5.6.17
0.33318495750427 us/iteration
Output for 5.6.16
0.32161808013916 us/iteration
Output for 5.6.15
0.35478687286377 us/iteration
Output for 5.6.14
0.33641695976257 us/iteration
Output for 5.6.13
0.35098099708557 us/iteration
Output for 5.6.12
0.33845686912537 us/iteration
Output for 5.6.11
0.38601899147034 us/iteration
Output for 5.6.10
0.38596391677856 us/iteration
Output for 5.6.9
0.39258909225464 us/iteration
Output for 5.6.8
0.34943103790283 us/iteration
Output for 5.6.7
0.38258099555969 us/iteration
Output for 5.6.6
0.36852097511292 us/iteration
Output for 5.6.5
0.35538697242737 us/iteration
Output for 5.6.4
0.32842302322388 us/iteration
Output for 5.6.3
0.41961884498596 us/iteration
Output for 5.6.2
0.33948588371277 us/iteration
Output for 5.6.1
0.32518601417542 us/iteration
Output for 5.6.0
0.33981084823608 us/iteration
Output for 5.5.38
0.39282298088074 us/iteration
Output for 5.5.37
0.3410210609436 us/iteration
Output for 5.5.36
0.35803484916687 us/iteration
Output for 5.5.35
0.34704303741455 us/iteration
Output for 5.5.34
0.33520007133484 us/iteration
Output for 5.5.33
0.33144903182983 us/iteration
Output for 5.5.32
0.34479093551636 us/iteration
Output for 5.5.31
0.31743288040161 us/iteration
Output for 5.5.30
0.37271809577942 us/iteration
Output for 5.5.29
0.36405110359192 us/iteration
Output for 5.5.28
0.36954593658447 us/iteration
Output for 5.5.27
0.33606505393982 us/iteration
Output for 5.5.26
0.32333707809448 us/iteration
Output for 5.5.25
0.37511086463928 us/iteration
Output for 5.5.24
0.40722298622131 us/iteration
Output for 5.5.23
0.35705804824829 us/iteration
Output for 5.5.22
0.3444390296936 us/iteration
Output for 5.5.21
0.33296895027161 us/iteration
Output for 5.5.20
0.33404898643494 us/iteration
Output for 5.5.19
0.36559391021729 us/iteration
Output for 5.5.18
0.34282302856445 us/iteration
Output for 5.5.17
0.35853600502014 us/iteration
Output for 5.5.16
0.31136584281921 us/iteration
Output for 5.5.15
0.39470314979553 us/iteration
Output for 5.5.14
0.39451193809509 us/iteration
Output for 5.5.13
0.38021397590637 us/iteration
Output for 5.5.12
0.37333011627197 us/iteration
Output for 5.5.11
0.34939098358154 us/iteration
Output for 5.5.10
0.39963293075562 us/iteration
Output for 5.5.9
0.33713889122009 us/iteration
Output for 5.5.8
0.37344288825989 us/iteration
Output for 5.5.7
0.37362289428711 us/iteration
Output for 5.5.6
0.37881994247437 us/iteration
Output for 5.5.5
0.3672308921814 us/iteration
Output for 5.5.4
0.32428908348083 us/iteration
Output for 5.5.3
0.35863780975342 us/iteration
Output for 5.5.2
0.34977102279663 us/iteration
Output for 5.5.1
0.32142400741577 us/iteration
Output for 5.5.0
0.33554816246033 us/iteration
Output for 5.4.45
0.35539579391479 us/iteration
Output for 5.4.44
0.34220910072327 us/iteration
Output for 5.4.43
0.40017008781433 us/iteration
Output for 5.4.42
0.37369179725647 us/iteration
Output for 5.4.41
0.39967703819275 us/iteration
Output for 5.4.40
0.34536480903625 us/iteration
Output for 5.4.39
0.36501502990723 us/iteration
Output for 5.4.38
0.36509680747986 us/iteration
Output for 5.4.37
0.33274078369141 us/iteration
Output for 5.4.36
0.39405608177185 us/iteration
Output for 5.4.35
0.41016101837158 us/iteration
Output for 5.4.34
0.32771015167236 us/iteration
Output for 5.4.33
0.38315415382385 us/iteration
Output for 5.4.32
0.37884902954102 us/iteration
Output for 5.4.31
0.41749095916748 us/iteration
Output for 5.4.30
0.38459706306458 us/iteration
Output for 5.4.29
0.3514609336853 us/iteration
Output for 5.4.28
0.37081480026245 us/iteration
Output for 5.4.27
0.41804695129395 us/iteration
Output for 5.4.26
0.32912111282349 us/iteration
Output for 5.4.25
0.37660598754883 us/iteration
Output for 5.4.24
0.36944794654846 us/iteration
Output for 5.4.23
0.36313509941101 us/iteration
Output for 5.4.22
0.41307210922241 us/iteration
Output for 5.4.21
0.44679498672485 us/iteration
Output for 5.4.20
0.42000102996826 us/iteration
Output for 5.4.19
0.34021687507629 us/iteration
Output for 5.4.18
0.38992381095886 us/iteration
Output for 5.4.17
0.36800193786621 us/iteration
Output for 5.4.16
0.36108899116516 us/iteration
Output for 5.4.15
0.39537405967712 us/iteration
Output for 5.4.14
0.37169885635376 us/iteration
Output for 5.4.13
0.35278606414795 us/iteration
Output for 5.4.12
0.32917213439941 us/iteration
Output for 5.4.11
0.34780311584473 us/iteration
Output for 5.4.10
0.34841704368591 us/iteration
Output for 5.4.9
0.35470199584961 us/iteration
Output for 5.4.8
0.40996599197388 us/iteration
Output for 5.4.7
0.42640900611877 us/iteration
Output for 5.4.6
0.37006998062134 us/iteration
Output for 5.4.5
0.44154405593872 us/iteration
Output for 5.4.4
0.35019588470459 us/iteration
Output for 5.4.3
0.3468189239502 us/iteration
Output for 5.4.2
0.34008407592773 us/iteration
Output for 5.4.1
0.39393997192383 us/iteration
Output for 5.4.0
0.39293003082275 us/iteration
Output for 5.3.29
0.43065309524536 us/iteration
Output for 5.3.28
0.45025610923767 us/iteration
Output for 5.3.27
0.48624110221863 us/iteration
Output for 5.3.26
0.44930505752563 us/iteration
Output for 5.3.25
0.45617413520813 us/iteration
Output for 5.3.24
0.46986818313599 us/iteration
Output for 5.3.23
0.51020503044128 us/iteration
Output for 5.3.22
0.46420502662659 us/iteration
Output for 5.3.21
0.55385804176331 us/iteration
Output for 5.3.20
0.51503705978394 us/iteration
Output for 5.3.19
0.4453501701355 us/iteration
Output for 5.3.18
0.4278039932251 us/iteration
Output for 5.3.17
0.43481612205505 us/iteration
Output for 5.3.16
0.55007314682007 us/iteration
Output for 5.3.15
0.47851705551147 us/iteration
Output for 5.3.14
0.41170406341553 us/iteration
Output for 5.3.13
0.44262313842773 us/iteration
Output for 5.3.12
0.43854212760925 us/iteration
Output for 5.3.11
0.42893815040588 us/iteration
Output for 5.3.10
0.46835708618164 us/iteration
Output for 5.3.9
0.51305103302002 us/iteration
Output for 5.3.8
0.46012306213379 us/iteration
Output for 5.3.7
0.42480301856995 us/iteration
Output for 5.3.6
0.53053903579712 us/iteration
Output for 5.3.5
0.51205110549927 us/iteration
Output for 5.3.4
0.47310209274292 us/iteration
Output for 5.3.3
0.46362709999084 us/iteration
Output for 5.3.2
0.41139507293701 us/iteration
Output for 5.3.1
0.41626119613647 us/iteration
Output for 5.3.0
0.39935708045959 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

preferences:
70.58 ms | 863 KiB | 5 Q