3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function foo($n) { if($n == 0) return 'ok'; return foo($n-1); } $time = microtime(true); foo(1000); echo (microtime(true) - $time) . ' elapsed';
based on H2PGK
Output for 7.1.0
4.6014785766602E-5 elapsed
Output for 7.0.14
4.6968460083008E-5 elapsed
Output for 7.0.7
7.0810317993164E-5 elapsed
Output for 7.0.6
8.4877014160156E-5 elapsed
Output for 7.0.5
0.00017094612121582 elapsed
Output for 7.0.4
7.2002410888672E-5 elapsed
Output for 7.0.3
6.1988830566406E-5 elapsed
Output for 7.0.2
3.6954879760742E-5 elapsed
Output for 7.0.1
4.887580871582E-5 elapsed
Output for 7.0.0
3.9100646972656E-5 elapsed
Output for hhvm-3.12.0
0.0001380443572998 elapsed
Output for hhvm-3.10.0
0.00014805793762207 elapsed
Output for 5.4.43, 5.6.28
0.00031709671020508 elapsed
Output for 5.3.8, 5.6.21
0.0002140998840332 elapsed
Output for 5.6.8, 5.6.20
0.00029802322387695 elapsed
Output for 5.6.19
0.00043177604675293 elapsed
Output for 5.6.18
0.00034189224243164 elapsed
Output for 5.4.0, 5.6.17
0.00018310546875 elapsed
Output for 5.6.16
0.00026106834411621 elapsed
Output for 5.6.15
0.00027680397033691 elapsed
Output for 5.6.14
0.0004119873046875 elapsed
Output for 5.6.13
0.00030303001403809 elapsed
Output for 5.6.12
0.00024509429931641 elapsed
Output for 5.4.26, 5.6.11
0.00018405914306641 elapsed
Output for 5.6.10
0.00027990341186523 elapsed
Output for 5.6.9
0.0003209114074707 elapsed
Output for 5.6.7
0.00017285346984863 elapsed
Output for 5.5.35
0.00031113624572754 elapsed
Output for 5.4.11, 5.4.27, 5.5.34
0.00019097328186035 elapsed
Output for 5.5.33
0.00018000602722168 elapsed
Output for 5.5.32
0.00028896331787109 elapsed
Output for 5.5.31
0.00027799606323242 elapsed
Output for 5.5.30
0.0003349781036377 elapsed
Output for 5.5.29
0.00025296211242676 elapsed
Output for 5.3.3, 5.3.21, 5.5.28
0.00020599365234375 elapsed
Output for 5.5.27
0.00030899047851562 elapsed
Output for 5.5.26
0.00023508071899414 elapsed
Output for 5.5.25
0.00032782554626465 elapsed
Output for 5.5.24
0.00025606155395508 elapsed
Output for 5.4.45
0.00029397010803223 elapsed
Output for 5.4.44
0.00032615661621094 elapsed
Output for 5.4.42
0.00031495094299316 elapsed
Output for 5.4.41
0.00030803680419922 elapsed
Output for 5.4.40
0.00031900405883789 elapsed
Output for 5.4.39
0.00032877922058105 elapsed
Output for 5.4.38
0.00032496452331543 elapsed
Output for 5.4.37
0.00041007995605469 elapsed
Output for 5.4.36
0.00054597854614258 elapsed
Output for 5.2.2, 5.4.35
0.00069999694824219 elapsed
Output for 5.4.34
0.00054001808166504 elapsed
Output for 5.4.7, 5.4.32
0.0001828670501709 elapsed
Output for 5.3.23, 5.4.31
0.00022506713867188 elapsed
Output for 5.4.22 - 5.4.23, 5.4.30
0.00017786026000977 elapsed
Output for 5.4.3, 5.4.29
0.00017809867858887 elapsed
Output for 5.4.28
0.00020384788513184 elapsed
Output for 5.4.25
0.00019407272338867 elapsed
Output for 5.4.24
0.00022602081298828 elapsed
Output for 5.4.21
0.00017690658569336 elapsed
Output for 5.4.20
0.00017595291137695 elapsed
Output for 5.4.19
0.00020194053649902 elapsed
Output for 5.4.18
0.00031399726867676 elapsed
Output for 5.4.17
0.00018811225891113 elapsed
Output for 5.4.16
0.00020313262939453 elapsed
Output for 5.4.15
0.00019502639770508 elapsed
Output for 5.4.14
0.00020885467529297 elapsed
Output for 5.4.13
0.00017881393432617 elapsed
Output for 5.4.6, 5.4.9, 5.4.12
0.00017714500427246 elapsed
Output for 5.4.10
0.00019478797912598 elapsed
Output for 5.4.8
0.00017619132995605 elapsed
Output for 5.4.5
0.00018906593322754 elapsed
Output for 5.4.4
0.00022387504577637 elapsed
Output for 5.4.2
0.0001838207244873 elapsed
Output for 5.4.1
0.00017499923706055 elapsed
Output for 5.3.29
0.00023698806762695 elapsed
Output for 5.3.28
0.00019693374633789 elapsed
Output for 5.3.27
0.00021195411682129 elapsed
Output for 5.3.26
0.0001981258392334 elapsed
Output for 5.3.25
0.00021815299987793 elapsed
Output for 5.3.24
0.0002138614654541 elapsed
Output for 5.3.22
0.00020003318786621 elapsed
Output for 5.3.20
0.00038290023803711 elapsed
Output for 5.3.19
0.00022697448730469 elapsed
Output for 5.3.18
0.00021505355834961 elapsed
Output for 5.3.17
0.0001978874206543 elapsed
Output for 5.3.16
0.0001990795135498 elapsed
Output for 5.3.15
0.00020480155944824 elapsed
Output for 5.3.14
0.00029182434082031 elapsed
Output for 5.3.13
0.00036096572875977 elapsed
Output for 5.3.12
0.00020718574523926 elapsed
Output for 5.3.11
0.00022315979003906 elapsed
Output for 5.3.10
0.00043106079101562 elapsed
Output for 5.3.5, 5.3.9
0.00020790100097656 elapsed
Output for 5.3.7
0.00021100044250488 elapsed
Output for 5.3.6
0.00033998489379883 elapsed
Output for 5.3.4
0.00019717216491699 elapsed
Output for 5.3.2
0.00021004676818848 elapsed
Output for 5.3.1
0.00023388862609863 elapsed
Output for 5.3.0
0.00020980834960938 elapsed
Output for 5.2.17
0.00054502487182617 elapsed
Output for 5.2.16
0.00061607360839844 elapsed
Output for 5.2.15
0.00057291984558105 elapsed
Output for 5.2.14
0.00055599212646484 elapsed
Output for 5.2.13
0.00056600570678711 elapsed
Output for 5.2.12
0.00061798095703125 elapsed
Output for 5.1.5, 5.2.11
0.0006721019744873 elapsed
Output for 5.2.10
0.00056314468383789 elapsed
Output for 5.2.9
0.00054407119750977 elapsed
Output for 5.2.8
0.00064992904663086 elapsed
Output for 5.2.7
0.00055193901062012 elapsed
Output for 5.2.6
0.00084710121154785 elapsed
Output for 5.2.5
0.0016069412231445 elapsed
Output for 5.2.4
0.0007169246673584 elapsed
Output for 5.2.3
0.00068783760070801 elapsed
Output for 5.2.1
0.00051188468933105 elapsed
Output for 5.2.0
0.00049805641174316 elapsed
Output for 5.1.6
0.00063896179199219 elapsed
Output for 5.1.4
0.00063705444335938 elapsed
Output for 5.1.3
0.0012009143829346 elapsed
Output for 5.1.2
0.00069403648376465 elapsed
Output for 5.1.1
0.0010039806365967 elapsed
Output for 5.1.0
0.00060796737670898 elapsed
Output for 5.0.5
0.00076413154602051 elapsed
Output for 5.0.4
0.00074291229248047 elapsed
Output for 5.0.3
0.00074195861816406 elapsed
Output for 5.0.2
0.00077104568481445 elapsed
Output for 5.0.1
0.00082516670227051 elapsed
Output for 5.0.0
0.00080704689025879 elapsed
Output for 4.4.9
0.0016010000000001 elapsed
Output for 4.4.8
0.001525 elapsed
Output for 4.4.7
0.001459 elapsed
Output for 4.4.6
0.002602 elapsed
Output for 4.4.5
0.001621 elapsed
Output for 4.4.4
0.001651 elapsed
Output for 4.4.3
0.0015689999999999 elapsed
Output for 4.4.2
0.00151 elapsed
Output for 4.4.1
0.001664 elapsed
Output for 4.4.0
0.0016389999999999 elapsed
Output for 4.3.11
0.000923 elapsed
Output for 4.3.10
0.000981 elapsed
Output for 4.3.9
0.001032 elapsed
Output for 4.3.8
0.001121 elapsed
Output for 4.3.7
0.001233 elapsed
Output for 4.3.6
0.001011 elapsed
Output for 4.3.5
0.000999 elapsed
Output for 4.3.4
0.000884 elapsed
Output for 4.3.3
0.000945 elapsed
Output for 4.3.2
0.001717 elapsed
Output for 4.3.1
0.00090800000000002 elapsed
Output for 4.3.0
0.001035 elapsed