3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new RuntimeException("Wee"); } catch (\Throwable $t) { var_dump($t); throw new Exception("Weee+Weee"); } finally { echo "I get executed no matter what."; }
Output for 7.0.0 - 7.0.33, 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, 8.2.0 - 8.2.19, 8.3.0 - 8.3.7
object(RuntimeException)#1 (7) { ["message":protected]=> string(3) "Wee" ["string":"Exception":private]=> string(0) "" ["code":protected]=> int(0) ["file":protected]=> string(9) "/in/gA7Y1" ["line":protected]=> int(3) ["trace":"Exception":private]=> array(0) { } ["previous":"Exception":private]=> NULL } I get executed no matter what. Fatal error: Uncaught Exception: Weee+Weee in /in/gA7Y1:6 Stack trace: #0 {main} thrown in /in/gA7Y1 on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.40
I get executed no matter what. Fatal error: Uncaught exception 'RuntimeException' with message 'Wee' in /in/gA7Y1:3 Stack trace: #0 {main} thrown in /in/gA7Y1 on line 3
Process exited with code 255.

preferences:
149.02 ms | 402 KiB | 290 Q