3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php // tail recursion function foo($n) { if($n == 0) return; return foo($n-1); } $time = microtime(true); foo(1000); echo (microtime(true) - $time) . ' elapsed';
based on maQ1T
Output for 7.1.0
4.4107437133789E-5 elapsed
Output for 7.0.14
4.7206878662109E-5 elapsed
Output for 7.0.8
0.00010514259338379 elapsed
Output for 7.0.7
0.00011205673217773 elapsed
Output for 7.0.6
9.7036361694336E-5 elapsed
Output for 7.0.5
0.0001680850982666 elapsed
Output for 7.0.4
5.1021575927734E-5 elapsed
Output for 7.0.3
3.7908554077148E-5 elapsed
Output for 7.0.2
6.0081481933594E-5 elapsed
Output for 7.0.1
3.8862228393555E-5 elapsed
Output for 7.0.0
4.1007995605469E-5 elapsed
Output for hhvm-3.12.0
0.00013089179992676 elapsed
Output for hhvm-3.10.0
0.0002131462097168 elapsed
Output for 5.5.26, 5.6.28
0.00030899047851562 elapsed
Output for 5.6.23
0.00030994415283203 elapsed
Output for 5.4.13, 5.6.22
0.0003209114074707 elapsed
Output for 5.6.21
0.0002901554107666 elapsed
Output for 5.6.12, 5.6.20
0.00026202201843262 elapsed
Output for 5.5.9, 5.6.18 - 5.6.19
0.0003361701965332 elapsed
Output for 5.6.17
0.00031399726867676 elapsed
Output for 5.6.1, 5.6.16
0.00028300285339355 elapsed
Output for 5.3.6, 5.6.15
0.00034189224243164 elapsed
Output for 5.4.36, 5.6.14
0.00033998489379883 elapsed
Output for 5.6.13
0.00032305717468262 elapsed
Output for 5.6.3, 5.6.11
0.00022697448730469 elapsed
Output for 5.6.10
0.00027108192443848 elapsed
Output for 5.6.9
0.00038695335388184 elapsed
Output for 5.6.8
0.0002751350402832 elapsed
Output for 5.6.7
0.0002140998840332 elapsed
Output for 5.6.6
0.00031781196594238 elapsed
Output for 5.5.20, 5.6.5
0.00031495094299316 elapsed
Output for 5.6.4
0.0003199577331543 elapsed
Output for 5.6.2
0.00032687187194824 elapsed
Output for 5.6.0
0.00029706954956055 elapsed
Output for 5.5.37
0.00031709671020508 elapsed
Output for 5.5.36
0.00032186508178711 elapsed
Output for 5.5.10, 5.5.31, 5.5.33, 5.5.35
0.00030803680419922 elapsed
Output for 5.5.34
0.00029492378234863 elapsed
Output for 5.5.12, 5.5.32
0.00028109550476074 elapsed
Output for 5.4.34, 5.5.30
0.00032806396484375 elapsed
Output for 5.5.29
0.00031900405883789 elapsed
Output for 5.4.32, 5.5.28
0.00028896331787109 elapsed
Output for 5.5.27
0.0002129077911377 elapsed
Output for 5.5.25
0.00026583671569824 elapsed
Output for 5.5.24
0.00029611587524414 elapsed
Output for 5.4.9, 5.5.23
0.00020003318786621 elapsed
Output for 5.5.22
0.00033402442932129 elapsed
Output for 5.5.21
0.0003509521484375 elapsed
Output for 5.5.19
0.00027203559875488 elapsed
Output for 5.5.18
0.00023603439331055 elapsed
Output for 5.4.38, 5.5.16
0.00022506713867188 elapsed
Output for 5.5.15
0.00021696090698242 elapsed
Output for 5.4.45, 5.5.14
0.00025200843811035 elapsed
Output for 5.5.13
0.00022792816162109 elapsed
Output for 5.5.11
0.00025081634521484 elapsed
Output for 5.5.8
0.0003211498260498 elapsed
Output for 5.4.11, 5.4.25, 5.5.7
0.00029993057250977 elapsed
Output for 5.5.6
0.00022006034851074 elapsed
Output for 5.4.39, 5.5.5
0.00019502639770508 elapsed
Output for 5.5.4
0.00020217895507812 elapsed
Output for 5.5.3
0.00020694732666016 elapsed
Output for 5.5.1 - 5.5.2
0.00023198127746582 elapsed
Output for 5.3.10, 5.5.0
0.00021004676818848 elapsed
Output for 5.4.44
0.00031518936157227 elapsed
Output for 5.4.43
0.0003049373626709 elapsed
Output for 5.4.42
0.00027918815612793 elapsed
Output for 5.4.41
0.0002739429473877 elapsed
Output for 5.4.40
0.00024509429931641 elapsed
Output for 5.4.37
0.00034594535827637 elapsed
Output for 5.4.35
0.00025582313537598 elapsed
Output for 5.4.31
0.0002288818359375 elapsed
Output for 5.4.30
0.00028586387634277 elapsed
Output for 5.4.29
0.00028800964355469 elapsed
Output for 5.4.28
0.0002291202545166 elapsed
Output for 5.4.27
0.00024986267089844 elapsed
Output for 5.4.7, 5.4.26
0.00028705596923828 elapsed
Output for 5.4.24
0.00023698806762695 elapsed
Output for 5.4.3, 5.4.23
0.00019192695617676 elapsed
Output for 5.4.22
0.00021100044250488 elapsed
Output for 5.4.4, 5.4.21
0.00018000602722168 elapsed
Output for 5.4.20
0.00018882751464844 elapsed
Output for 5.4.19
0.00019001960754395 elapsed
Output for 5.4.18
0.00019097328186035 elapsed
Output for 5.4.17
0.00018405914306641 elapsed
Output for 5.4.16
0.00018215179443359 elapsed
Output for 5.4.15
0.00018501281738281 elapsed
Output for 5.4.14
0.0001981258392334 elapsed
Output for 5.4.12
0.00034904479980469 elapsed
Output for 5.4.10
0.00027298927307129 elapsed
Output for 5.4.2, 5.4.8
0.00018596649169922 elapsed
Output for 5.4.6
0.00020098686218262 elapsed
Output for 5.4.5
0.0001828670501709 elapsed
Output for 5.4.1
0.00019216537475586 elapsed
Output for 5.4.0
0.00024795532226562 elapsed
Output for 5.3.29
0.0003960132598877 elapsed
Output for 5.3.28
0.00027084350585938 elapsed
Output for 5.3.27
0.00027799606323242 elapsed
Output for 5.3.26
0.00026297569274902 elapsed
Output for 5.3.25
0.00029087066650391 elapsed
Output for 5.3.24
0.0005638599395752 elapsed
Output for 5.3.23
0.00040793418884277 elapsed
Output for 5.3.22
0.0002899169921875 elapsed
Output for 5.3.21
0.00039982795715332 elapsed
Output for 5.3.20
0.00035405158996582 elapsed
Output for 5.3.19
0.00027704238891602 elapsed
Output for 5.3.18
0.00028085708618164 elapsed
Output for 5.3.17
0.00026702880859375 elapsed
Output for 5.3.16
0.00026392936706543 elapsed
Output for 5.3.15
0.00025010108947754 elapsed
Output for 5.3.14
0.00025391578674316 elapsed
Output for 5.3.13
0.00037217140197754 elapsed
Output for 5.3.12
0.00026988983154297 elapsed
Output for 5.3.11
0.00038814544677734 elapsed
Output for 5.3.9
0.000244140625 elapsed
Output for 5.3.8
0.00025796890258789 elapsed
Output for 5.3.7
0.0003659725189209 elapsed
Output for 5.3.5
0.00022292137145996 elapsed
Output for 5.3.4
0.00026893615722656 elapsed
Output for 5.3.3
0.00024700164794922 elapsed
Output for 5.3.2
0.00032711029052734 elapsed
Output for 5.3.1
0.0002589225769043 elapsed
Output for 5.3.0
0.00030112266540527 elapsed
Output for 5.2.17
0.00047898292541504 elapsed
Output for 5.2.16
0.00060200691223145 elapsed
Output for 5.2.15
0.00055098533630371 elapsed
Output for 5.2.11, 5.2.14
0.00053691864013672 elapsed
Output for 5.2.13
0.00053596496582031 elapsed
Output for 5.2.12
0.00069284439086914 elapsed
Output for 5.2.10
0.00050806999206543 elapsed
Output for 5.2.9
0.00051307678222656 elapsed
Output for 5.2.8
0.00041890144348145 elapsed
Output for 5.2.7
0.00076508522033691 elapsed
Output for 5.2.6
0.00052499771118164 elapsed
Output for 5.2.5
0.00094985961914062 elapsed
Output for 5.2.4
0.0011260509490967 elapsed
Output for 5.2.3
0.00093913078308105 elapsed
Output for 5.2.2
0.00095105171203613 elapsed
Output for 5.2.1
0.00082302093505859 elapsed
Output for 5.2.0
0.00075411796569824 elapsed
Output for 5.1.6
0.0010712146759033 elapsed
Output for 5.1.3, 5.1.5
0.0010790824890137 elapsed
Output for 5.1.4
0.0014669895172119 elapsed
Output for 5.1.2
0.00096487998962402 elapsed
Output for 5.1.1
0.0010459423065186 elapsed
Output for 5.1.0
0.0010120868682861 elapsed
Output for 5.0.5
0.0010521411895752 elapsed
Output for 5.0.4
0.0011348724365234 elapsed
Output for 5.0.3
0.0011451244354248 elapsed
Output for 5.0.2
0.0013251304626465 elapsed
Output for 5.0.1
0.001460075378418 elapsed
Output for 5.0.0
0.0012259483337402 elapsed
Output for 4.4.9
0.001331 elapsed
Output for 4.4.8
0.001463 elapsed
Output for 4.4.7
0.002724 elapsed
Output for 4.4.6
0.002775 elapsed
Output for 4.4.5
0.002755 elapsed
Output for 4.4.4
0.002479 elapsed
Output for 4.4.3
0.002839 elapsed
Output for 4.4.2
0.002552 elapsed
Output for 4.4.1
0.002345 elapsed
Output for 4.4.0
0.002719 elapsed
Output for 4.3.11
0.001993 elapsed
Output for 4.3.10
0.001704 elapsed
Output for 4.3.9
0.001616 elapsed
Output for 4.3.8
0.001683 elapsed
Output for 4.3.7
0.001637 elapsed
Output for 4.3.6
0.001406 elapsed
Output for 4.3.5
0.001695 elapsed
Output for 4.3.4
0.001515 elapsed
Output for 4.3.3
0.001634 elapsed
Output for 4.3.2
0.00292 elapsed
Output for 4.3.1
0.001659 elapsed
Output for 4.3.0
0.001509 elapsed