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(20000); echo (microtime(true) - $time) . ' elapsed';
Output for 7.1.0
0.0011310577392578 elapsed
Output for 7.0.14
0.0011718273162842 elapsed
Output for 7.0.8
0.0041558742523193 elapsed
Output for 7.0.7
0.0036201477050781 elapsed
Output for 7.0.6
0.0036718845367432 elapsed
Output for 7.0.5
0.0032410621643066 elapsed
Output for 7.0.4
0.0011780261993408 elapsed
Output for 7.0.3
0.0011398792266846 elapsed
Output for 7.0.2
0.0011510848999023 elapsed
Output for 7.0.1
0.0011160373687744 elapsed
Output for 7.0.0
0.0009758472442627 elapsed
Output for hhvm-3.10.0 - 3.12.0
Fatal error: Stack overflow in /in/Jho20 on line 4
Process exited with code 255.
Output for 5.6.28
0.0062980651855469 elapsed
Output for 5.6.23
0.0047249794006348 elapsed
Output for 5.6.22
0.0053930282592773 elapsed
Output for 5.6.21
0.0063719749450684 elapsed
Output for 5.6.20
0.0063807964324951 elapsed
Output for 5.6.19
0.0054988861083984 elapsed
Output for 5.6.18
0.0089919567108154 elapsed
Output for 5.6.17
0.0095419883728027 elapsed
Output for 5.6.16
0.0057909488677979 elapsed
Output for 5.6.15
0.0060620307922363 elapsed
Output for 5.6.14
0.0058960914611816 elapsed
Output for 5.6.13
0.0047829151153564 elapsed
Output for 5.6.12
0.0047910213470459 elapsed
Output for 5.6.11
0.0061140060424805 elapsed
Output for 5.6.10
0.0060138702392578 elapsed
Output for 5.6.9
0.0044260025024414 elapsed
Output for 5.6.8
0.0064499378204346 elapsed
Output for 5.6.7
0.0067019462585449 elapsed
Output for 5.6.6
0.005202054977417 elapsed
Output for 5.6.5
0.0062160491943359 elapsed
Output for 5.6.4
0.0058660507202148 elapsed
Output for 5.6.3
0.0055379867553711 elapsed
Output for 5.6.2
0.0055549144744873 elapsed
Output for 5.6.1
0.0066540241241455 elapsed
Output for 5.6.0
0.0055010318756104 elapsed
Output for 5.5.37
0.0054941177368164 elapsed
Output for 5.5.36
0.0057568550109863 elapsed
Output for 5.5.35
0.0053820610046387 elapsed
Output for 5.5.34
0.0058300495147705 elapsed
Output for 5.5.33
0.0057699680328369 elapsed
Output for 5.5.32
0.0051069259643555 elapsed
Output for 5.5.31
0.0064990520477295 elapsed
Output for 5.5.30
0.0050630569458008 elapsed
Output for 5.5.29
0.0059778690338135 elapsed
Output for 5.5.28
0.0058507919311523 elapsed
Output for 5.5.27
0.0044660568237305 elapsed
Output for 5.5.26
0.0059480667114258 elapsed
Output for 5.5.25
0.0050969123840332 elapsed
Output for 5.5.24
0.006295919418335 elapsed
Output for 5.5.23
0.0053670406341553 elapsed
Output for 5.5.22
0.0060009956359863 elapsed
Output for 5.5.21
0.0055038928985596 elapsed
Output for 5.5.20
0.0061848163604736 elapsed
Output for 5.5.19
0.0067219734191895 elapsed
Output for 5.5.18
0.0065100193023682 elapsed
Output for 5.5.16
0.0065960884094238 elapsed
Output for 5.5.15
0.0053579807281494 elapsed
Output for 5.5.14
0.0045619010925293 elapsed
Output for 5.5.13
0.0059349536895752 elapsed
Output for 5.5.12
0.0067660808563232 elapsed
Output for 5.5.11
0.0065279006958008 elapsed
Output for 5.5.10
0.0062038898468018 elapsed
Output for 5.5.9
0.0068597793579102 elapsed
Output for 5.5.8
0.0064270496368408 elapsed
Output for 5.5.7
0.0069379806518555 elapsed
Output for 5.5.6
0.0067260265350342 elapsed
Output for 5.5.5
0.0067739486694336 elapsed
Output for 5.5.4
0.0050179958343506 elapsed
Output for 5.5.3
0.0059139728546143 elapsed
Output for 5.5.2
0.0058708190917969 elapsed
Output for 5.5.1
0.005605936050415 elapsed
Output for 5.5.0
0.0061299800872803 elapsed
Output for 5.4.45
0.0038731098175049 elapsed
Output for 5.4.44
0.006403923034668 elapsed
Output for 5.4.43
0.0040979385375977 elapsed
Output for 5.4.42
0.005763053894043 elapsed
Output for 5.4.41
0.0048120021820068 elapsed
Output for 5.4.40
0.0096538066864014 elapsed
Output for 5.4.39
0.0053808689117432 elapsed
Output for 5.4.38
0.0058150291442871 elapsed
Output for 5.4.37
0.0051558017730713 elapsed
Output for 5.4.36
0.0043849945068359 elapsed
Output for 5.4.35
0.0062110424041748 elapsed
Output for 5.4.34
0.0060091018676758 elapsed
Output for 5.4.32
0.0057358741760254 elapsed
Output for 5.4.31
0.0049448013305664 elapsed
Output for 5.4.30
0.0058410167694092 elapsed
Output for 5.4.29
0.0062990188598633 elapsed
Output for 5.4.28
0.0067050457000732 elapsed
Output for 5.4.27
0.0061390399932861 elapsed
Output for 5.4.26
0.0060839653015137 elapsed
Output for 5.4.25
0.0062508583068848 elapsed
Output for 5.4.24
0.0053501129150391 elapsed
Output for 5.4.23
0.0068578720092773 elapsed
Output for 5.4.22
0.0065939426422119 elapsed
Output for 5.4.21
0.004580020904541 elapsed
Output for 5.4.20
0.0066580772399902 elapsed
Output for 5.4.19
0.0055840015411377 elapsed
Output for 5.4.18
0.0063190460205078 elapsed
Output for 5.4.17
0.0047709941864014 elapsed
Output for 5.4.16
0.0056788921356201 elapsed
Output for 5.4.15
0.0057799816131592 elapsed
Output for 5.4.14
0.0057859420776367 elapsed
Output for 5.4.13
0.0048661231994629 elapsed
Output for 5.4.12
0.0061359405517578 elapsed
Output for 5.4.11
0.0049889087677002 elapsed
Output for 5.4.10
0.0062558650970459 elapsed
Output for 5.4.9
0.0050399303436279 elapsed
Output for 5.4.8
0.0062789916992188 elapsed
Output for 5.4.7
0.0040860176086426 elapsed
Output for 5.4.6
0.005958080291748 elapsed
Output for 5.4.5
0.0051000118255615 elapsed
Output for 5.4.4
0.005903959274292 elapsed
Output for 5.4.3
0.0066220760345459 elapsed
Output for 5.4.2
0.0068399906158447 elapsed
Output for 5.4.1
0.0059719085693359 elapsed
Output for 5.4.0
0.0064530372619629 elapsed
Output for 5.3.29
0.0079290866851807 elapsed
Output for 5.3.28
0.007192850112915 elapsed
Output for 5.3.27
0.0097510814666748 elapsed
Output for 5.3.26
0.0077059268951416 elapsed
Output for 5.3.25
0.0088720321655273 elapsed
Output for 5.3.24
0.0086419582366943 elapsed
Output for 5.3.23
0.0090029239654541 elapsed
Output for 5.3.22
0.0069200992584229 elapsed
Output for 5.3.21
0.0074338912963867 elapsed
Output for 5.3.20
0.00925612449646 elapsed
Output for 5.3.19
0.0063419342041016 elapsed
Output for 5.3.18
0.0072128772735596 elapsed
Output for 5.3.17
0.0068659782409668 elapsed
Output for 5.3.16
0.0088999271392822 elapsed
Output for 5.3.15
0.0095040798187256 elapsed
Output for 5.3.14
0.0085010528564453 elapsed
Output for 5.3.13
0.0081751346588135 elapsed
Output for 5.3.12
0.0062360763549805 elapsed
Output for 5.3.11
0.0077750682830811 elapsed
Output for 5.3.10
0.0055060386657715 elapsed
Output for 5.3.9
0.0098578929901123 elapsed
Output for 5.3.8
0.0075547695159912 elapsed
Output for 5.3.7
0.0085608959197998 elapsed
Output for 5.3.6
0.0087230205535889 elapsed
Output for 5.3.5
0.008371114730835 elapsed
Output for 5.3.4
0.0061891078948975 elapsed
Output for 5.3.3
0.0061600208282471 elapsed
Output for 5.3.2
0.0075740814208984 elapsed
Output for 5.3.1
0.006415843963623 elapsed
Output for 5.3.0
0.0070888996124268 elapsed
Output for 4.3.0 - 4.4.9, 5.0.1 - 5.2.17

Process exited with code 139.
Output for 5.0.0
0.013500928878784 elapsed