3v4l.org

run code in 300+ PHP versions simultaneously
<?php $limiter = 20; $func = function() use (&$limiter, &$func) { $limiter--; if (!$limiter) { print "<pre>"; debug_print_backtrace(); throw new Exception("test error"); } if ($limiter <= 0) return; $func(); }; $func();
Output for 8.4.1 - 8.4.12
<pre>#0 /in/VhoFu(15): {closure:/in/VhoFu:3}() #1 /in/VhoFu(15): {closure:/in/VhoFu:3}() #2 /in/VhoFu(15): {closure:/in/VhoFu:3}() #3 /in/VhoFu(15): {closure:/in/VhoFu:3}() #4 /in/VhoFu(15): {closure:/in/VhoFu:3}() #5 /in/VhoFu(15): {closure:/in/VhoFu:3}() #6 /in/VhoFu(15): {closure:/in/VhoFu:3}() #7 /in/VhoFu(15): {closure:/in/VhoFu:3}() #8 /in/VhoFu(15): {closure:/in/VhoFu:3}() #9 /in/VhoFu(15): {closure:/in/VhoFu:3}() #10 /in/VhoFu(15): {closure:/in/VhoFu:3}() #11 /in/VhoFu(15): {closure:/in/VhoFu:3}() #12 /in/VhoFu(15): {closure:/in/VhoFu:3}() #13 /in/VhoFu(15): {closure:/in/VhoFu:3}() #14 /in/VhoFu(15): {closure:/in/VhoFu:3}() #15 /in/VhoFu(15): {closure:/in/VhoFu:3}() #16 /in/VhoFu(15): {closure:/in/VhoFu:3}() #17 /in/VhoFu(15): {closure:/in/VhoFu:3}() #18 /in/VhoFu(15): {closure:/in/VhoFu:3}() #19 /in/VhoFu(18): {closure:/in/VhoFu:3}() Fatal error: Uncaught Exception: test error in /in/VhoFu:10 Stack trace: #0 /in/VhoFu(15): {closure:/in/VhoFu:3}() #1 /in/VhoFu(15): {closure:/in/VhoFu:3}() #2 /in/VhoFu(15): {closure:/in/VhoFu:3}() #3 /in/VhoFu(15): {closure:/in/VhoFu:3}() #4 /in/VhoFu(15): {closure:/in/VhoFu:3}() #5 /in/VhoFu(15): {closure:/in/VhoFu:3}() #6 /in/VhoFu(15): {closure:/in/VhoFu:3}() #7 /in/VhoFu(15): {closure:/in/VhoFu:3}() #8 /in/VhoFu(15): {closure:/in/VhoFu:3}() #9 /in/VhoFu(15): {closure:/in/VhoFu:3}() #10 /in/VhoFu(15): {closure:/in/VhoFu:3}() #11 /in/VhoFu(15): {closure:/in/VhoFu:3}() #12 /in/VhoFu(15): {closure:/in/VhoFu:3}() #13 /in/VhoFu(15): {closure:/in/VhoFu:3}() #14 /in/VhoFu(15): {closure:/in/VhoFu:3}() #15 /in/VhoFu(15): {closure:/in/VhoFu:3}() #16 /in/VhoFu(15): {closure:/in/VhoFu:3}() #17 /in/VhoFu(15): {closure:/in/VhoFu:3}() #18 /in/VhoFu(15): {closure:/in/VhoFu:3}() #19 /in/VhoFu(18): {closure:/in/VhoFu:3}() #20 {main} thrown in /in/VhoFu on line 10
Process exited with code 255.
Output for 8.1.0 - 8.1.33, 8.2.0 - 8.2.29, 8.3.0 - 8.3.25
<pre>#0 /in/VhoFu(15): {closure}() #1 /in/VhoFu(15): {closure}() #2 /in/VhoFu(15): {closure}() #3 /in/VhoFu(15): {closure}() #4 /in/VhoFu(15): {closure}() #5 /in/VhoFu(15): {closure}() #6 /in/VhoFu(15): {closure}() #7 /in/VhoFu(15): {closure}() #8 /in/VhoFu(15): {closure}() #9 /in/VhoFu(15): {closure}() #10 /in/VhoFu(15): {closure}() #11 /in/VhoFu(15): {closure}() #12 /in/VhoFu(15): {closure}() #13 /in/VhoFu(15): {closure}() #14 /in/VhoFu(15): {closure}() #15 /in/VhoFu(15): {closure}() #16 /in/VhoFu(15): {closure}() #17 /in/VhoFu(15): {closure}() #18 /in/VhoFu(15): {closure}() #19 /in/VhoFu(18): {closure}() Fatal error: Uncaught Exception: test error in /in/VhoFu:10 Stack trace: #0 /in/VhoFu(15): {closure}() #1 /in/VhoFu(15): {closure}() #2 /in/VhoFu(15): {closure}() #3 /in/VhoFu(15): {closure}() #4 /in/VhoFu(15): {closure}() #5 /in/VhoFu(15): {closure}() #6 /in/VhoFu(15): {closure}() #7 /in/VhoFu(15): {closure}() #8 /in/VhoFu(15): {closure}() #9 /in/VhoFu(15): {closure}() #10 /in/VhoFu(15): {closure}() #11 /in/VhoFu(15): {closure}() #12 /in/VhoFu(15): {closure}() #13 /in/VhoFu(15): {closure}() #14 /in/VhoFu(15): {closure}() #15 /in/VhoFu(15): {closure}() #16 /in/VhoFu(15): {closure}() #17 /in/VhoFu(15): {closure}() #18 /in/VhoFu(15): {closure}() #19 /in/VhoFu(18): {closure}() #20 {main} thrown in /in/VhoFu on line 10
Process exited with code 255.
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.34, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
<pre>#0 {closure}() called at [/in/VhoFu:15] #1 {closure}() called at [/in/VhoFu:15] #2 {closure}() called at [/in/VhoFu:15] #3 {closure}() called at [/in/VhoFu:15] #4 {closure}() called at [/in/VhoFu:15] #5 {closure}() called at [/in/VhoFu:15] #6 {closure}() called at [/in/VhoFu:15] #7 {closure}() called at [/in/VhoFu:15] #8 {closure}() called at [/in/VhoFu:15] #9 {closure}() called at [/in/VhoFu:15] #10 {closure}() called at [/in/VhoFu:15] #11 {closure}() called at [/in/VhoFu:15] #12 {closure}() called at [/in/VhoFu:15] #13 {closure}() called at [/in/VhoFu:15] #14 {closure}() called at [/in/VhoFu:15] #15 {closure}() called at [/in/VhoFu:15] #16 {closure}() called at [/in/VhoFu:15] #17 {closure}() called at [/in/VhoFu:15] #18 {closure}() called at [/in/VhoFu:15] #19 {closure}() called at [/in/VhoFu:18] Fatal error: Uncaught Exception: test error in /in/VhoFu:10 Stack trace: #0 /in/VhoFu(15): {closure}() #1 /in/VhoFu(15): {closure}() #2 /in/VhoFu(15): {closure}() #3 /in/VhoFu(15): {closure}() #4 /in/VhoFu(15): {closure}() #5 /in/VhoFu(15): {closure}() #6 /in/VhoFu(15): {closure}() #7 /in/VhoFu(15): {closure}() #8 /in/VhoFu(15): {closure}() #9 /in/VhoFu(15): {closure}() #10 /in/VhoFu(15): {closure}() #11 /in/VhoFu(15): {closure}() #12 /in/VhoFu(15): {closure}() #13 /in/VhoFu(15): {closure}() #14 /in/VhoFu(15): {closure}() #15 /in/VhoFu(15): {closure}() #16 /in/VhoFu(15): {closure}() #17 /in/VhoFu(15): {closure}() #18 /in/VhoFu(15): {closure}() #19 /in/VhoFu(18): {closure}() #20 {main} thrown in /in/VhoFu on line 10
Process exited with code 255.
Output for 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.40
<pre>#0 {closure}() called at [/in/VhoFu:15] #1 {closure}() called at [/in/VhoFu:15] #2 {closure}() called at [/in/VhoFu:15] #3 {closure}() called at [/in/VhoFu:15] #4 {closure}() called at [/in/VhoFu:15] #5 {closure}() called at [/in/VhoFu:15] #6 {closure}() called at [/in/VhoFu:15] #7 {closure}() called at [/in/VhoFu:15] #8 {closure}() called at [/in/VhoFu:15] #9 {closure}() called at [/in/VhoFu:15] #10 {closure}() called at [/in/VhoFu:15] #11 {closure}() called at [/in/VhoFu:15] #12 {closure}() called at [/in/VhoFu:15] #13 {closure}() called at [/in/VhoFu:15] #14 {closure}() called at [/in/VhoFu:15] #15 {closure}() called at [/in/VhoFu:15] #16 {closure}() called at [/in/VhoFu:15] #17 {closure}() called at [/in/VhoFu:15] #18 {closure}() called at [/in/VhoFu:15] #19 {closure}() called at [/in/VhoFu:18] Fatal error: Uncaught exception 'Exception' with message 'test error' in /in/VhoFu:10 Stack trace: #0 /in/VhoFu(15): {closure}() #1 /in/VhoFu(15): {closure}() #2 /in/VhoFu(15): {closure}() #3 /in/VhoFu(15): {closure}() #4 /in/VhoFu(15): {closure}() #5 /in/VhoFu(15): {closure}() #6 /in/VhoFu(15): {closure}() #7 /in/VhoFu(15): {closure}() #8 /in/VhoFu(15): {closure}() #9 /in/VhoFu(15): {closure}() #10 /in/VhoFu(15): {closure}() #11 /in/VhoFu(15): {closure}() #12 /in/VhoFu(15): {closure}() #13 /in/VhoFu(15): {closure}() #14 /in/VhoFu(15): {closure}() #15 /in/VhoFu(15): {closure}() #16 /in/VhoFu(15): {closure}() #17 /in/VhoFu(15): {closure}() #18 /in/VhoFu(15): {closure}() #19 /in/VhoFu(18): {closure}() #20 {main} thrown in /in/VhoFu on line 10
Process exited with code 255.
Output for 4.4.2 - 4.4.9, 5.1.0 - 5.1.6, 5.2.0 - 5.2.17
Parse error: syntax error, unexpected T_FUNCTION in /in/VhoFu on line 3
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, 5.0.0 - 5.0.5
Parse error: parse error, unexpected T_FUNCTION in /in/VhoFu on line 3
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/VhoFu on line 3
Process exited with code 255.

preferences:
166.99 ms | 419 KiB | 5 Q