3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \RuntimeException('Some Error'); } finally { $foo = new \Foo(); }
Output for 8.0.0 - 8.0.30, 8.1.0 - 8.1.27, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
Fatal error: Uncaught RuntimeException: Some Error in /in/RrblM:3 Stack trace: #0 {main} Next Error: Class "Foo" not found in /in/RrblM:5 Stack trace: #0 {main} thrown in /in/RrblM on line 5
Process exited with code 255.
Output for 7.0.0 - 7.0.32, 7.1.0 - 7.1.24, 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33
Fatal error: Uncaught RuntimeException: Some Error in /in/RrblM:3 Stack trace: #0 {main} Next Error: Class 'Foo' not found in /in/RrblM:5 Stack trace: #0 {main} thrown in /in/RrblM on line 5
Process exited with code 255.
Output for 5.6.0 - 5.6.38
Fatal error: Class 'Foo' not found in /in/RrblM on line 5
Process exited with code 255.
Output for 5.5.0 - 5.5.38

Process exited with code 139.

preferences:
206.4 ms | 401 KiB | 285 Q