3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo() { throw new Exception(); } foo( 1 + 0, 1 + 1, 1 + 2, 1 + 3 );
Output for 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
Fatal error: Uncaught Exception in /in/6fSRb:3 Stack trace: #0 /in/6fSRb(5): foo(1, 2, 3, 4) #1 {main} thrown in /in/6fSRb on line 3
Process exited with code 255.
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.33, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28
Fatal error: Uncaught Exception in /in/6fSRb:3 Stack trace: #0 /in/6fSRb(9): foo(1, 2, 3, 4) #1 {main} thrown in /in/6fSRb on line 3
Process exited with code 255.

preferences:
158.39 ms | 403 KiB | 217 Q