3v4l.org

run code in 300+ PHP versions simultaneously
<?php global $throw; $throw = false; function foo() { bar(); } function bar() { baz(); } function baz() { boom(); } function boom() { global $throw; if ($throw) { throw new RuntimeException(); } } function test($n) { for ($i = 0; $i < $n; $i++) { try { foo(); } catch (RuntimeException $e) { echo $e->getLine(); } } } $t = microtime(); test(100000); echo (microtime() - $t) . ' us';
Output for 7.3.12
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010242 us
Output for 7.3.11
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011076 us
Output for 7.3.10
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012081 us
Output for 7.3.9
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012862 us
Output for 7.3.8
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009683 us
Output for 7.3.7
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013384 us
Output for 7.3.6
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.01418 us
Output for 7.3.5
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009678 us
Output for 7.3.4
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010357 us
Output for 7.3.3
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.00971 us
Output for 7.3.2
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010791 us
Output for 7.3.1
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011782 us
Output for 7.3.0
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.026244 us
Output for 7.2.24
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012744 us
Output for 7.2.23
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013695 us
Output for 7.2.22
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013599 us
Output for 7.2.21
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.014664 us
Output for 7.2.20
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.017958 us
Output for 7.2.19
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.017175 us
Output for 7.2.18
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.025899 us
Output for 7.2.17
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.059284 us
Output for 7.2.16
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.029596 us
Output for 7.2.15
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.015459 us
Output for 7.2.14
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.027736 us
Output for 7.2.13
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013942 us
Output for 7.2.12
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013624 us
Output for 7.2.11
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.014033 us
Output for 7.2.10
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012965 us
Output for 7.2.9
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012063 us
Output for 7.2.8
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012426 us
Output for 7.2.7
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013544 us
Output for 7.2.6
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.016758 us
Output for 7.2.5
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013357 us
Output for 7.2.4
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012241 us
Output for 7.2.3
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.015756 us
Output for 7.2.2
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012097 us
Output for 7.2.1
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013809 us
Output for 7.2.0
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.015309 us
Output for 7.1.33
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.024725 us
Output for 7.1.32
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.02488 us
Output for 7.1.31
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.025677 us
Output for 7.1.30
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.024466 us
Output for 7.1.29
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.025349 us
Output for 7.1.28
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.067838 us
Output for 7.1.27
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.023141 us
Output for 7.1.26
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.022347 us
Output for 7.1.25
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.023494 us
Output for 7.1.24
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.01108 us
Output for 7.1.23
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011582 us
Output for 7.1.22
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010734 us
Output for 7.1.21
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012641 us
Output for 7.1.20
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.012089 us
Output for 7.1.19
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013495 us
Output for 7.1.18
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009288 us
Output for 7.1.17
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011561 us
Output for 7.1.16
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010604 us
Output for 7.1.15
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.013471 us
Output for 7.1.14
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009835 us
Output for 7.1.13
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009252 us
Output for 7.1.12
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011455 us
Output for 7.1.11
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009883 us
Output for 7.1.10
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011207 us
Output for 7.1.9
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009507 us
Output for 7.1.8
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010193 us
Output for 7.1.7
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009452 us
Output for 7.1.6
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011328 us
Output for 7.1.5
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009465 us
Output for 7.1.4
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.009755 us
Output for 7.1.3
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011134 us
Output for 7.1.2
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010474 us
Output for 7.1.1
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.011538 us
Output for 7.1.0
Notice: A non well formed numeric value encountered in /in/svHTv on line 37 Notice: A non well formed numeric value encountered in /in/svHTv on line 37 0.010201 us
Output for 7.0.32
0.009655 us
Output for 7.0.31
0.011259 us
Output for 7.0.30
0.00937 us
Output for 7.0.29
0.011161 us
Output for 7.0.28
0.010656 us
Output for 7.0.27
0.012443 us
Output for 7.0.26
0.009387 us
Output for 7.0.25
0.009942 us
Output for 7.0.24
0.010797 us
Output for 7.0.23
0.010594 us
Output for 7.0.22
0.012316 us
Output for 7.0.21
0.017417 us
Output for 7.0.20
0.010072 us
Output for 7.0.19
0.010161 us
Output for 7.0.18
0.009374 us
Output for 7.0.17
0.009679 us
Output for 7.0.16
0.009378 us
Output for 7.0.15
0.009892 us
Output for 7.0.14
0.011364 us
Output for 7.0.13
0.01219 us
Output for 7.0.12
0.013514 us
Output for 7.0.11
0.011514 us
Output for 7.0.10
0.010874 us
Output for 7.0.9
0.009983 us
Output for 7.0.8
0.011136 us
Output for 7.0.7
0.01178 us
Output for 7.0.6
0.011349 us
Output for 7.0.5
0.010148 us
Output for 7.0.4
0.010272 us
Output for 7.0.3
0.00947 us
Output for 7.0.2
0.014638 us
Output for 7.0.1
0.009626 us
Output for 7.0.0
0.009853 us
Output for 5.6.38
0.024943 us
Output for 5.6.37
0.024744 us
Output for 5.6.36
0.024474 us
Output for 5.6.35
0.026508 us
Output for 5.6.34
0.026982 us
Output for 5.6.33
0.024633 us
Output for 5.6.32
0.02483 us
Output for 5.6.31
0.02551 us
Output for 5.6.30
0.029471 us
Output for 5.6.29
0.026557 us
Output for 5.6.28
0.029867 us
Output for 5.6.27
0.026005 us
Output for 5.6.26
0.025647 us
Output for 5.4.41, 5.6.25
0.030002 us
Output for 5.6.24
0.025381 us
Output for 5.6.23
0.024687 us
Output for 5.6.22
0.027199 us
Output for 5.6.21
0.026603 us
Output for 5.6.20
0.024291 us
Output for 5.6.19
0.025661 us
Output for 5.6.18
0.025019 us
Output for 5.6.17
0.025682 us
Output for 5.6.16
0.025956 us
Output for 5.6.15
0.024769 us
Output for 5.6.14
0.026527 us
Output for 5.6.13
0.027829 us
Output for 5.6.12
0.025993 us
Output for 5.6.11
0.024231 us
Output for 5.6.10
0.029031 us
Output for 5.6.9
0.026589 us
Output for 5.6.8
0.023996 us
Output for 5.6.7
0.024778 us
Output for 5.6.6
0.023786 us
Output for 5.6.5
0.024464 us
Output for 5.6.4
0.02891 us
Output for 5.6.3
0.028439 us
Output for 5.6.2
0.024212 us
Output for 5.6.1
0.026311 us
Output for 5.6.0
0.026923 us
Output for 5.5.38
0.025897 us
Output for 5.5.37
0.028672 us
Output for 5.5.36
0.026105 us
Output for 5.5.35
0.027918 us
Output for 5.5.34
0.027293 us
Output for 5.5.33
0.027919 us
Output for 5.5.32
0.024341 us
Output for 5.5.31
0.025388 us
Output for 5.5.30
0.028513 us
Output for 5.5.29
0.024252 us
Output for 5.5.28
0.026769 us
Output for 5.5.27
0.028323 us
Output for 5.5.26
0.02967 us
Output for 5.5.25
0.027579 us
Output for 5.5.24
0.027581 us
Output for 5.5.23
0.027543 us
Output for 5.5.22
0.027691 us
Output for 5.5.21
0.028008 us
Output for 5.5.20
0.029306 us
Output for 5.5.19
0.024042 us
Output for 5.5.18
0.026594 us
Output for 5.5.17
0.027929 us
Output for 5.5.16
0.02824 us
Output for 5.5.15
0.028344 us
Output for 5.5.14
0.028235 us
Output for 5.5.13
0.025914 us
Output for 5.5.12
0.028853 us
Output for 5.5.11
0.026418 us
Output for 5.5.10
0.030331 us
Output for 5.5.9
0.028048 us
Output for 5.5.8
0.031223 us
Output for 5.5.7
0.025694 us
Output for 5.5.6
0.028389 us
Output for 5.5.5
0.028987 us
Output for 5.5.4
0.028217 us
Output for 5.5.3
0.026666 us
Output for 5.5.2
0.028676 us
Output for 5.5.1
0.028636 us
Output for 5.5.0
0.02758 us
Output for 5.4.45
0.027027 us
Output for 5.4.44
0.03041 us
Output for 5.4.43
0.025799 us
Output for 5.4.42
0.028599 us
Output for 5.4.40
0.027888 us
Output for 5.4.39
0.028785 us
Output for 5.4.38
0.029565 us
Output for 5.4.37
0.029175 us
Output for 5.4.36
0.024908 us
Output for 5.4.35
0.029983 us
Output for 5.4.34
0.030653 us
Output for 5.4.33
0.030315 us
Output for 5.4.32
0.027428 us
Output for 5.4.31
0.027464 us
Output for 5.4.30
0.027565 us
Output for 5.4.29
0.027485 us
Output for 5.4.28
0.029596 us
Output for 5.4.27
0.02934 us
Output for 5.4.26
0.0287 us
Output for 5.4.25
0.025486 us
Output for 5.4.24
0.028969 us
Output for 5.4.23
0.032075 us
Output for 5.4.22
0.030089 us
Output for 5.4.21
0.031407 us
Output for 5.4.20
0.029421 us
Output for 5.4.19
0.032084 us
Output for 5.4.18
0.030488 us
Output for 5.4.17
0.029549 us
Output for 5.4.16
0.028275 us
Output for 5.4.15
0.028419 us
Output for 5.4.14
0.026773 us
Output for 5.4.13
0.031826 us
Output for 5.4.12
0.02805 us
Output for 5.4.11
0.025691 us
Output for 5.4.10
0.029975 us
Output for 5.4.9
0.024907 us
Output for 5.4.8
0.028297 us
Output for 5.4.7
0.027279 us
Output for 5.4.6
0.029702 us
Output for 5.4.5
0.028572 us
Output for 5.4.4
0.045448 us
Output for 5.4.3
0.029807 us
Output for 5.4.2
0.027827 us
Output for 5.4.1
0.029923 us
Output for 5.4.0
0.02575 us
Output for 5.3.29
0.032045 us
Output for 5.3.28
0.033915 us
Output for 5.3.27
0.034033 us
Output for 5.3.26
0.035323 us
Output for 5.3.25
0.033988 us
Output for 5.3.24
0.031825 us
Output for 5.3.23
0.034235 us
Output for 5.3.22
0.032905 us
Output for 5.3.21
0.033323 us
Output for 5.3.20
0.033488 us
Output for 5.3.19
0.03054 us
Output for 5.3.18
0.034655 us
Output for 5.3.17
0.030127 us
Output for 5.3.16
0.030132 us
Output for 5.3.15
0.033344 us
Output for 5.3.14
0.044654 us
Output for 5.3.13
0.035091 us
Output for 5.3.12
0.031687 us
Output for 5.3.11
0.030711 us
Output for 5.3.10
0.030524 us
Output for 5.3.9
0.033428 us
Output for 5.3.8
0.033196 us
Output for 5.3.7
0.03091 us
Output for 5.3.6
0.032365 us
Output for 5.3.5
0.033874 us
Output for 5.3.4
0.034052 us
Output for 5.3.3
0.033621 us
Output for 5.3.2
0.03112 us
Output for 5.3.1
0.0323 us
Output for 5.3.0
0.033423 us
Output for 5.2.17
0.052443 us
Output for 5.2.16
0.048085 us
Output for 5.2.15
0.047614 us
Output for 5.2.14
0.050053 us
Output for 5.2.13
0.052832 us
Output for 5.2.12
0.053406 us
Output for 5.2.11
0.052145 us
Output for 5.2.10
0.048925 us
Output for 5.2.9
0.052482 us
Output for 5.2.8
0.053142 us
Output for 5.2.7
0.049646 us
Output for 5.2.6
0.054405 us
Output for 5.2.5
0.050777 us
Output for 5.2.4
0.055082 us
Output for 5.2.3
0.053073 us
Output for 5.2.2
0.053773 us
Output for 5.2.1
0.053391 us
Output for 5.2.0
0.056949 us
Output for 5.1.6
0.058233 us
Output for 5.1.5
0.06239 us
Output for 5.1.4
0.058187 us
Output for 5.1.3
0.057692 us
Output for 5.1.2
0.057663 us
Output for 5.1.1
0.054959 us
Output for 5.1.0
0.056009 us
Output for 5.0.0 - 5.0.5
Fatal error: Class 'RuntimeException' not found in /in/svHTv on line 29
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_NEW in /in/svHTv on line 21
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.3.11, 4.4.0 - 4.4.1
Parse error: parse error, unexpected T_NEW in /in/svHTv on line 21
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/svHTv on line 21
Process exited with code 255.

preferences:
163.62 ms | 401 KiB | 317 Q