3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function f($index=0){ if($index<10000) f(++$index); } $time=microtime(true); f(); echo microtime(true)-$time; ?>
Output for 7.1.0
0.0003199577331543
Output for 7.0.14
0.00067400932312012
Output for 7.0.11
0.0061109066009521
Output for 7.0.10
0.0049138069152832
Output for 7.0.9
0.00096797943115234
Output for 7.0.8
0.0015778541564941
Output for 7.0.7
0.0054521560668945
Output for 7.0.6
0.0013110637664795
Output for 7.0.5
0.0048069953918457
Output for 7.0.4
0.00054097175598145
Output for 7.0.3
0.00058197975158691
Output for 7.0.2
0.00044798851013184
Output for 7.0.1
0.00045394897460938
Output for 7.0.0
0.00041508674621582
Output for hhvm-3.13.2
Assertion failure: /build/hhvm/src/hhvm-HHVM-3.13.2/hphp/runtime/base/runtime-error.cpp:48: void HPHP::raise_error(const string&): assertion `0' failed.
Process exited with code 134.
Output for hhvm-3.12.0
Assertion failure: /build/hhvm/src/hhvm-HHVM-3.12.0/hphp/runtime/base/runtime-error.cpp:48: void HPHP::raise_error(const string&): assertion `0' failed.
Process exited with code 134.
Output for hhvm-3.10.0
Fatal error: Stack overflow in /in/gTZBZ on line 3
Process exited with code 255.
Output for 5.6.28
0.0027859210968018
Output for 5.6.26
0.0027470588684082
Output for 5.6.25
0.002716064453125
Output for 5.6.24
0.0036959648132324
Output for 5.6.23
0.0027759075164795
Output for 5.6.22
0.0027890205383301
Output for 5.6.21
0.0029671192169189
Output for 5.6.20
0.0032801628112793
Output for 5.6.19
0.0023560523986816
Output for 5.6.18
0.0019018650054932
Output for 5.6.17
0.0024919509887695
Output for 5.6.16
0.002816915512085
Output for 5.6.15
0.0020720958709717
Output for 5.6.14
0.0018379688262939
Output for 5.6.13
0.0018489360809326
Output for 5.6.12
0.0018141269683838
Output for 5.6.11
0.0018930435180664
Output for 5.6.10
0.0023388862609863
Output for 5.6.9
0.0018188953399658
Output for 5.6.8
0.0018770694732666
Output for 5.6.7
0.0017030239105225
Output for 5.6.6
0.0018329620361328
Output for 5.6.5
0.002938985824585
Output for 5.6.4
0.0018398761749268
Output for 5.6.3
0.0024468898773193
Output for 5.6.2
0.0018129348754883
Output for 5.6.1
0.0018990039825439
Output for 5.6.0
0.0018391609191895
Output for 5.5.38
0.0033700466156006
Output for 5.3.8, 5.5.37
0.0031721591949463
Output for 5.5.36
0.0025649070739746
Output for 5.5.35
0.002377986907959
Output for 5.5.34
0.0025341510772705
Output for 5.5.33
0.0028820037841797
Output for 5.5.32
0.0031948089599609
Output for 5.5.31
0.0021970272064209
Output for 5.5.30
0.0018022060394287
Output for 5.5.24, 5.5.29
0.0018179416656494
Output for 5.5.28
0.0023608207702637
Output for 5.5.27
0.0019369125366211
Output for 5.5.26
0.0018010139465332
Output for 5.5.25
0.0018148422241211
Output for 5.5.23
0.0020689964294434
Output for 5.5.22
0.002208948135376
Output for 5.5.21
0.0023810863494873
Output for 5.5.20
0.0019211769104004
Output for 5.5.19
0.0028228759765625
Output for 5.5.18
0.0018370151519775
Output for 5.5.16
0.0018479824066162
Output for 5.5.15
0.0018529891967773
Output for 5.5.14
0.0019640922546387
Output for 5.5.13
0.0018689632415771
Output for 5.5.12
0.0025811195373535
Output for 5.5.11
0.002446174621582
Output for 5.5.10
0.0027298927307129
Output for 5.5.9
0.002169132232666
Output for 5.5.8
0.002575159072876
Output for 5.5.7
0.0026211738586426
Output for 5.5.6
0.0029559135437012
Output for 5.5.5
0.0026428699493408
Output for 5.5.4
0.002856969833374
Output for 5.5.3
0.0027039051055908
Output for 5.5.2
0.0029449462890625
Output for 5.5.1
0.0028340816497803
Output for 5.5.0
0.0026111602783203
Output for 5.4.45
0.0020229816436768
Output for 5.4.44
0.0028219223022461
Output for 5.4.43
0.0025198459625244
Output for 5.4.42
0.0017578601837158
Output for 5.4.41
0.0017259120941162
Output for 5.4.40
0.0017549991607666
Output for 5.4.39
0.0021159648895264
Output for 5.4.38
0.0019800662994385
Output for 5.4.37
0.0018730163574219
Output for 5.4.36
0.0017690658569336
Output for 5.4.35
0.0017480850219727
Output for 5.4.34
0.0017580986022949
Output for 5.4.32
0.0020058155059814
Output for 5.4.31
0.00177001953125
Output for 5.4.30
0.0017359256744385
Output for 5.4.29
0.0017108917236328
Output for 5.4.28
0.0025739669799805
Output for 5.4.27
0.0023820400238037
Output for 5.4.26
0.0023629665374756
Output for 5.4.25
0.0029098987579346
Output for 5.4.24
0.0026719570159912
Output for 5.4.23
0.0026028156280518
Output for 5.4.22
0.0027079582214355
Output for 5.4.21
0.0026228427886963
Output for 5.4.20
0.0031759738922119
Output for 5.4.19
0.002593994140625
Output for 5.4.18
0.0024299621582031
Output for 5.4.17
0.0029370784759521
Output for 5.4.16
0.0030019283294678
Output for 5.4.15
0.0030460357666016
Output for 5.3.20, 5.4.14
0.0031259059906006
Output for 5.4.13
0.0024781227111816
Output for 5.3.23, 5.4.12
0.0031640529632568
Output for 5.4.11
0.0028901100158691
Output for 5.4.10
0.00313401222229
Output for 5.4.9
0.0029070377349854
Output for 5.4.8
0.003026008605957
Output for 5.4.7
0.0023298263549805
Output for 5.4.6
0.0029850006103516
Output for 5.4.5
0.0032479763031006
Output for 5.4.4
0.0030288696289062
Output for 5.4.3
0.003180980682373
Output for 5.4.2
0.0026259422302246
Output for 5.4.1
0.0031669139862061
Output for 5.4.0
0.0029599666595459
Output for 5.3.29
0.0020430088043213
Output for 5.3.28
0.0031189918518066
Output for 5.3.27
0.0035409927368164
Output for 5.3.26
0.0029661655426025
Output for 5.3.25
0.0034239292144775
Output for 5.3.24
0.0035808086395264
Output for 5.3.22
0.0035750865936279
Output for 5.3.21
0.0031709671020508
Output for 5.3.19
0.003119945526123
Output for 5.3.18
0.0031869411468506
Output for 5.3.17
0.0037050247192383
Output for 5.3.16
0.0032811164855957
Output for 5.3.15
0.002863883972168
Output for 5.3.14
0.0033040046691895
Output for 5.3.13
0.0033149719238281
Output for 5.3.12
0.0030369758605957
Output for 5.3.11
0.003486156463623
Output for 5.3.10
0.0032978057861328
Output for 5.3.9
0.0034968852996826
Output for 5.3.7
0.0036289691925049
Output for 5.3.6
0.0038270950317383
Output for 5.3.5
0.002892017364502
Output for 5.3.4
0.0034470558166504
Output for 5.3.3
0.0034730434417725
Output for 5.3.2
0.0026741027832031
Output for 5.3.1
0.0036468505859375
Output for 5.3.0
0.0034940242767334
Output for 5.2.17
0.0083701610565186
Output for 5.2.16
0.0094878673553467
Output for 5.2.15
0.0098779201507568
Output for 5.2.14
0.010267019271851
Output for 5.2.13
0.010080099105835
Output for 5.2.12
0.0085489749908447
Output for 5.2.11
0.009019136428833
Output for 5.2.10
0.007673978805542
Output for 5.2.9
0.0091559886932373
Output for 5.2.8
0.0095739364624023
Output for 5.2.7
0.0096859931945801
Output for 5.2.6
0.0082879066467285
Output for 5.2.5
0.011445999145508
Output for 5.2.4
0.010966062545776
Output for 5.2.3
0.011488914489746
Output for 5.2.2
0.009868860244751
Output for 5.2.1
0.0083520412445068
Output for 5.2.0
0.0075161457061768
Output for 5.1.6
0.009105920791626
Output for 5.1.5
0.0078921318054199
Output for 5.1.4
0.010633945465088
Output for 5.1.3
0.010318040847778
Output for 5.1.2
0.0096650123596191
Output for 5.1.1
0.010173082351685
Output for 5.1.0
0.0093770027160645
Output for 5.0.5
0.013015985488892
Output for 5.0.4
0.013484954833984
Output for 5.0.3
0.011265993118286
Output for 5.0.2
0.011664867401123
Output for 5.0.1
0.011852025985718
Output for 5.0.0
0.012944936752319
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.015223