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(10000); echo (microtime(true) - $time) . ' elapsed';
based on Jho20
Output for 7.1.0
0.00047111511230469 elapsed
Output for 7.0.14
0.00070786476135254 elapsed
Output for 7.0.6
0.0011031627655029 elapsed
Output for 7.0.5
0.00062894821166992 elapsed
Output for 7.0.4
0.00071096420288086 elapsed
Output for 7.0.3
0.00053191184997559 elapsed
Output for 7.0.2
0.00066590309143066 elapsed
Output for 7.0.1
0.00049400329589844 elapsed
Output for 7.0.0
0.00077414512634277 elapsed
Output for 5.6.28
0.003079891204834 elapsed
Output for 5.6.21
0.0031130313873291 elapsed
Output for 5.6.20
0.002547025680542 elapsed
Output for 5.6.19
0.0030341148376465 elapsed
Output for 5.6.18
0.001863956451416 elapsed
Output for 5.6.17
0.0019340515136719 elapsed
Output for 5.6.16
0.0026309490203857 elapsed
Output for 5.6.15
0.0031640529632568 elapsed
Output for 5.6.14
0.0026350021362305 elapsed
Output for 5.6.13
0.0028688907623291 elapsed
Output for 5.6.12
0.0022740364074707 elapsed
Output for 5.6.11
0.002892017364502 elapsed
Output for 5.6.10
0.0021090507507324 elapsed
Output for 5.6.9
0.0019190311431885 elapsed
Output for 5.6.8
0.0031590461730957 elapsed
Output for 5.5.35
0.0027329921722412 elapsed
Output for 5.5.34
0.0029411315917969 elapsed
Output for 5.5.33
0.0020108222961426 elapsed
Output for 5.5.32
0.0019280910491943 elapsed
Output for 5.5.31
0.0022380352020264 elapsed
Output for 5.5.30
0.0031449794769287 elapsed
Output for 5.5.29
0.0025160312652588 elapsed
Output for 5.5.28
0.0027468204498291 elapsed
Output for 5.5.27
0.0028030872344971 elapsed
Output for 5.5.26
0.0030210018157959 elapsed
Output for 5.5.25
0.0021932125091553 elapsed
Output for 5.5.24
0.0027148723602295 elapsed
Output for 5.4.45
0.002338171005249 elapsed
Output for 5.4.44
0.0030808448791504 elapsed
Output for 5.4.43
0.0032329559326172 elapsed
Output for 5.4.42
0.0032539367675781 elapsed
Output for 5.4.41
0.0033979415893555 elapsed
Output for 5.4.40
0.0034501552581787 elapsed
Output for 5.4.39
0.0032880306243896 elapsed
Output for 5.4.38
0.0035409927368164 elapsed
Output for 5.4.37
0.0099210739135742 elapsed
Output for 5.4.36
0.0049550533294678 elapsed
Output for 5.4.35
0.004335880279541 elapsed
Output for 5.4.34
0.0032870769500732 elapsed
Output for 5.4.32
0.0019218921661377 elapsed
Output for 5.4.31
0.0019149780273438 elapsed
Output for 5.4.30
0.0029399394989014 elapsed
Output for 5.4.29
0.0024199485778809 elapsed
Output for 5.4.28
0.0019090175628662 elapsed
Output for 5.4.27
0.001953125 elapsed
Output for 5.4.26
0.0019099712371826 elapsed
Output for 5.4.25
0.0019311904907227 elapsed
Output for 5.4.24
0.0033140182495117 elapsed
Output for 5.4.23
0.0018749237060547 elapsed
Output for 5.4.22
0.0020229816436768 elapsed
Output for 5.4.21
0.0021460056304932 elapsed
Output for 5.4.20
0.0018930435180664 elapsed
Output for 5.4.19
0.0018739700317383 elapsed
Output for 5.4.18
0.0019018650054932 elapsed
Output for 5.4.17
0.0018789768218994 elapsed
Output for 5.4.16
0.0018191337585449 elapsed
Output for 5.4.15
0.0017969608306885 elapsed
Output for 5.4.14
0.0019259452819824 elapsed
Output for 5.4.13
0.0018479824066162 elapsed
Output for 5.4.10, 5.4.12
0.0017681121826172 elapsed
Output for 5.4.11
0.0018539428710938 elapsed
Output for 5.4.9
0.0018100738525391 elapsed
Output for 5.4.8
0.0017991065979004 elapsed
Output for 5.4.7
0.0020241737365723 elapsed
Output for 5.4.6
0.0018308162689209 elapsed
Output for 5.4.5
0.0017819404602051 elapsed
Output for 5.4.4
0.0018188953399658 elapsed
Output for 5.4.3
0.0017931461334229 elapsed
Output for 5.4.2
0.0018019676208496 elapsed
Output for 5.4.1
0.0018389225006104 elapsed
Output for 5.4.0
0.0017251968383789 elapsed
Output for 5.3.29
0.0021331310272217 elapsed
Output for 5.3.28
0.0022239685058594 elapsed
Output for 5.3.27
0.0021820068359375 elapsed
Output for 5.3.26
0.0022850036621094 elapsed
Output for 5.3.25
0.0021848678588867 elapsed
Output for 5.3.24
0.0024709701538086 elapsed
Output for 5.3.23
0.0021519660949707 elapsed
Output for 5.3.22
0.0022070407867432 elapsed
Output for 5.3.21
0.0024509429931641 elapsed
Output for 5.3.20
0.0022377967834473 elapsed
Output for 5.3.14, 5.3.19
0.0022859573364258 elapsed
Output for 5.3.18
0.0025320053100586 elapsed
Output for 5.3.17
0.0022389888763428 elapsed
Output for 5.3.16
0.002310037612915 elapsed
Output for 5.3.15
0.0022909641265869 elapsed
Output for 5.3.13
0.0022358894348145 elapsed
Output for 5.3.12
0.0022280216217041 elapsed
Output for 5.3.11
0.0022330284118652 elapsed
Output for 5.3.10
0.002932071685791 elapsed
Output for 5.3.9
0.0022249221801758 elapsed
Output for 5.3.8
0.0021431446075439 elapsed
Output for 5.3.7
0.0021748542785645 elapsed
Output for 5.3.6
0.0023140907287598 elapsed
Output for 5.3.5
0.0023090839385986 elapsed
Output for 5.3.4
0.0023460388183594 elapsed
Output for 5.3.3
0.0022578239440918 elapsed
Output for 5.3.2
0.0020749568939209 elapsed
Output for 5.3.1
0.0021390914916992 elapsed
Output for 5.3.0
0.0021669864654541 elapsed
Output for 5.2.17
0.0059211254119873 elapsed
Output for 5.2.16
0.0057008266448975 elapsed
Output for 5.2.15
0.006134033203125 elapsed
Output for 5.2.14
0.0059950351715088 elapsed
Output for 5.2.13
0.00583815574646 elapsed
Output for 5.2.12
0.0062010288238525 elapsed
Output for 5.2.11
0.0058591365814209 elapsed
Output for 5.2.10
0.0058770179748535 elapsed
Output for 5.2.9
0.0056450366973877 elapsed
Output for 5.2.8
0.0057840347290039 elapsed
Output for 5.2.7
0.0056819915771484 elapsed
Output for 5.2.6
0.0060358047485352 elapsed
Output for 5.2.5
0.0076069831848145 elapsed
Output for 5.2.4
0.0076489448547363 elapsed
Output for 5.2.3
0.0077779293060303 elapsed
Output for 5.2.2
0.0075600147247314 elapsed
Output for 5.2.1
0.0057768821716309 elapsed
Output for 5.2.0
0.0056540966033936 elapsed
Output for 5.1.6
0.0065691471099854 elapsed
Output for 5.1.5
0.0070700645446777 elapsed
Output for 5.1.4
0.0067710876464844 elapsed
Output for 5.1.3
0.0065710544586182 elapsed
Output for 5.1.2
0.0063929557800293 elapsed
Output for 5.1.1
0.0065479278564453 elapsed
Output for 5.1.0
0.0066370964050293 elapsed
Output for 5.0.5
0.0078628063201904 elapsed
Output for 5.0.4
0.0077860355377197 elapsed
Output for 5.0.3
0.0078411102294922 elapsed
Output for 5.0.2
0.013378143310547 elapsed
Output for 5.0.1
0.0083198547363281 elapsed
Output for 5.0.0
0.008389949798584 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.011076 elapsed