3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { throw new \Exception('Oups.'); } function bar() { return 'Yay'; } function test() { try { $foo = bar(); } catch (\Exception $e) { throw new \Exception('Another one'); } finally { if ($foo === null) { throw new \Exception('Third.'); } return $foo; } } var_dump(test());
Output for 7.3.0rc3
string(3) "Yay"