3v4l.org

run code in 300+ PHP versions simultaneously
<?php final class SkipTryCatchFinallyDifferentType { public function run() { try { return 1; } catch (\RuntimeException $e) { return 2; } finally { return "A"; } } } $a = new SkipTryCatchFinallyDifferentType(); var_dump($a->run());

preferences:
58.2 ms | 404 KiB | 5 Q