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(10000); echo (microtime(true) - $time) . ' elapsed';
based on sCY6v
Output for 7.1.0
0.00046706199645996 elapsed
Output for 7.0.14
0.00067496299743652 elapsed
Output for 7.0.7
0.0007481575012207 elapsed
Output for 7.0.6
0.00079107284545898 elapsed
Output for 7.0.5
0.00077915191650391 elapsed
Output for 7.0.4
0.00079584121704102 elapsed
Output for 7.0.3
0.00072789192199707 elapsed
Output for 7.0.2
0.00055813789367676 elapsed
Output for 7.0.1
0.00081682205200195 elapsed
Output for 7.0.0
0.00078201293945312 elapsed
Output for 5.5.9, 5.6.28
0.003046989440918 elapsed
Output for 5.6.22
0.0030760765075684 elapsed
Output for 5.6.21
0.0031869411468506 elapsed
Output for 5.6.20
0.0029230117797852 elapsed
Output for 5.6.19
0.0022361278533936 elapsed
Output for 5.6.18
0.0025570392608643 elapsed
Output for 5.6.17
0.0029070377349854 elapsed
Output for 5.6.16
0.0030591487884521 elapsed
Output for 5.6.15
0.0026381015777588 elapsed
Output for 5.6.14
0.003054141998291 elapsed
Output for 5.6.13
0.0029189586639404 elapsed
Output for 5.6.12
0.0028741359710693 elapsed
Output for 5.6.11
0.0029568672180176 elapsed
Output for 5.6.10
0.0022368431091309 elapsed
Output for 5.6.9
0.0021469593048096 elapsed
Output for 5.6.8
0.0026171207427979 elapsed
Output for 5.6.7
0.0026180744171143 elapsed
Output for 5.6.6
0.0029001235961914 elapsed
Output for 5.6.5
0.0027029514312744 elapsed
Output for 5.6.4
0.0028440952301025 elapsed
Output for 5.6.3
0.0032470226287842 elapsed
Output for 5.6.2
0.0029261112213135 elapsed
Output for 5.6.1
0.002687931060791 elapsed
Output for 5.6.0
0.0031650066375732 elapsed
Output for 5.5.36
0.0025920867919922 elapsed
Output for 5.5.35
0.0026588439941406 elapsed
Output for 5.5.34
0.0029499530792236 elapsed
Output for 5.5.33
0.0019650459289551 elapsed
Output for 5.5.32
0.0028231143951416 elapsed
Output for 5.5.31
0.0029301643371582 elapsed
Output for 5.5.30
0.0027599334716797 elapsed
Output for 5.5.29
0.0030348300933838 elapsed
Output for 5.5.28
0.0033040046691895 elapsed
Output for 5.5.27
0.0031130313873291 elapsed
Output for 5.5.26
0.0023930072784424 elapsed
Output for 5.5.25
0.0020430088043213 elapsed
Output for 5.5.24
0.0031599998474121 elapsed
Output for 5.5.23
0.0025718212127686 elapsed
Output for 5.5.22
0.0019710063934326 elapsed
Output for 5.5.21
0.002133846282959 elapsed
Output for 5.5.20
0.0029449462890625 elapsed
Output for 5.5.19
0.0027549266815186 elapsed
Output for 5.5.18
0.0032958984375 elapsed
Output for 5.5.16
0.0030138492584229 elapsed
Output for 5.5.15
0.0027978420257568 elapsed
Output for 5.5.14
0.003741979598999 elapsed
Output for 5.5.13
0.0024797916412354 elapsed
Output for 5.5.12
0.0029928684234619 elapsed
Output for 5.5.11
0.0030519962310791 elapsed
Output for 5.5.10
0.0030100345611572 elapsed
Output for 5.5.8
0.0032601356506348 elapsed
Output for 5.5.7
0.0028278827667236 elapsed
Output for 5.5.6
0.0030219554901123 elapsed
Output for 5.5.5
0.0036377906799316 elapsed
Output for 5.5.4
0.0030419826507568 elapsed
Output for 5.5.3
0.0030369758605957 elapsed
Output for 5.5.2
0.002816915512085 elapsed
Output for 5.5.1
0.003201961517334 elapsed
Output for 5.5.0
0.0030779838562012 elapsed
Output for 5.4.45
0.0022430419921875 elapsed
Output for 5.4.44
0.0027570724487305 elapsed
Output for 5.4.43
0.0027191638946533 elapsed
Output for 5.4.42
0.0030150413513184 elapsed
Output for 5.4.41
0.002795934677124 elapsed
Output for 5.4.40
0.00177001953125 elapsed
Output for 5.4.39
0.0026750564575195 elapsed
Output for 5.4.38
0.0026109218597412 elapsed
Output for 5.4.37
0.0027408599853516 elapsed
Output for 5.4.36
0.002061128616333 elapsed
Output for 5.4.35
0.0026049613952637 elapsed
Output for 5.4.34
0.0028479099273682 elapsed
Output for 5.4.32
0.0028729438781738 elapsed
Output for 5.4.31
0.0028650760650635 elapsed
Output for 5.4.30
0.0026748180389404 elapsed
Output for 5.4.23, 5.4.29
0.003026008605957 elapsed
Output for 5.4.28
0.0029199123382568 elapsed
Output for 5.4.27
0.0030281543731689 elapsed
Output for 5.4.26
0.00282883644104 elapsed
Output for 5.4.25
0.0023961067199707 elapsed
Output for 5.4.24
0.0029008388519287 elapsed
Output for 5.4.22
0.0031371116638184 elapsed
Output for 5.4.21
0.0028469562530518 elapsed
Output for 5.4.20
0.0027298927307129 elapsed
Output for 5.4.19
0.0027527809143066 elapsed
Output for 5.4.18
0.0030488967895508 elapsed
Output for 5.4.17
0.0029010772705078 elapsed
Output for 5.4.16
0.0028889179229736 elapsed
Output for 5.4.15
0.0028970241546631 elapsed
Output for 5.4.14
0.0029850006103516 elapsed
Output for 5.4.13
0.0027370452880859 elapsed
Output for 5.4.12
0.0020499229431152 elapsed
Output for 5.4.11
0.0027279853820801 elapsed
Output for 5.4.10
0.0032620429992676 elapsed
Output for 5.4.1, 5.4.9
0.0030539035797119 elapsed
Output for 5.4.8
0.0031201839447021 elapsed
Output for 5.4.7
0.0029079914093018 elapsed
Output for 5.4.6
0.0028390884399414 elapsed
Output for 5.4.5
0.0042049884796143 elapsed
Output for 5.4.4
0.0028150081634521 elapsed
Output for 5.4.3
0.0029740333557129 elapsed
Output for 5.4.2
0.0027470588684082 elapsed
Output for 5.4.0
0.0030069351196289 elapsed
Output for 5.3.29
0.0042800903320312 elapsed
Output for 5.3.28
0.0043139457702637 elapsed
Output for 5.3.27
0.0033769607543945 elapsed
Output for 5.3.26
0.0041599273681641 elapsed
Output for 5.3.25
0.0044088363647461 elapsed
Output for 5.3.24
0.0045990943908691 elapsed
Output for 5.3.23
0.0045070648193359 elapsed
Output for 5.3.22
0.0044121742248535 elapsed
Output for 5.3.21
0.0042481422424316 elapsed
Output for 5.3.20
0.0042979717254639 elapsed
Output for 5.3.19
0.0042879581451416 elapsed
Output for 5.3.18
0.0043838024139404 elapsed
Output for 5.3.17
0.004284143447876 elapsed
Output for 5.3.16
0.0039699077606201 elapsed
Output for 5.3.15
0.0042910575866699 elapsed
Output for 5.3.14
0.0040061473846436 elapsed
Output for 5.3.13
0.0043261051177979 elapsed
Output for 5.3.12
0.0035479068756104 elapsed
Output for 5.3.11
0.0042798519134521 elapsed
Output for 5.3.10
0.0040919780731201 elapsed
Output for 5.3.9
0.0045552253723145 elapsed
Output for 5.3.8
0.0040860176086426 elapsed
Output for 5.3.7
0.0040299892425537 elapsed
Output for 5.3.6
0.0042870044708252 elapsed
Output for 5.3.5
0.0039248466491699 elapsed
Output for 5.3.4
0.0039160251617432 elapsed
Output for 5.3.3
0.0037779808044434 elapsed
Output for 5.3.2
0.0041210651397705 elapsed
Output for 5.3.1
0.0044400691986084 elapsed
Output for 5.3.0
0.0043730735778809 elapsed
Output for 5.2.17
0.0064218044281006 elapsed
Output for 5.2.16
0.0085391998291016 elapsed
Output for 5.2.15
0.0090920925140381 elapsed
Output for 5.2.14
0.0066511631011963 elapsed
Output for 5.2.13
0.0056700706481934 elapsed
Output for 5.2.12
0.0088322162628174 elapsed
Output for 5.2.11
0.0089027881622314 elapsed
Output for 5.2.10
0.0091469287872314 elapsed
Output for 5.2.9
0.0096371173858643 elapsed
Output for 5.2.8
0.0089991092681885 elapsed
Output for 5.2.7
0.0093119144439697 elapsed
Output for 5.2.6
0.0094928741455078 elapsed
Output for 5.2.5
0.011055946350098 elapsed
Output for 5.2.4
0.011958122253418 elapsed
Output for 5.2.3
0.011299133300781 elapsed
Output for 5.2.2
0.011603116989136 elapsed
Output for 5.2.1
0.0082988739013672 elapsed
Output for 5.2.0
0.0088248252868652 elapsed
Output for 5.1.6
0.01099705696106 elapsed
Output for 5.1.5
0.011268138885498 elapsed
Output for 5.1.4
0.011189937591553 elapsed
Output for 5.1.3
0.011501789093018 elapsed
Output for 5.1.2
0.011351823806763 elapsed
Output for 5.1.1
0.011173963546753 elapsed
Output for 5.1.0
0.010829925537109 elapsed
Output for 5.0.5
0.014336109161377 elapsed
Output for 5.0.4
0.01366400718689 elapsed
Output for 5.0.3
0.012376070022583 elapsed
Output for 5.0.2
0.013359069824219 elapsed
Output for 5.0.1
0.012565135955811 elapsed
Output for 5.0.0
0.01378607749939 elapsed
Output for 4.3.0 - 4.3.7, 4.3.9 - 4.4.9

Process exited with code 139.
Output for 4.3.8
0.016172 elapsed