3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { $integerOrString = 1; $fooOrBarException = null; return 1; } catch (\FooException $e) { $integerOrString = 2; $fooOrBarException = $e; throw $e; } catch (\BarException $e) { $integerOrString = 'foo'; $fooOrBarException = $e; return $e; } finally { var_dump($integerOrString); }

preferences:
48.6 ms | 402 KiB | 5 Q