3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php function foo() { throw new \Exception('Oups.'); } function bar() { return null; } try { $foo = bar(); } catch (\Exception $e) { throw new \Exception('Another one'); } finally { if ($foo === null) { throw new \Exception('Third.'); } return $foo; }
Output for 7.2.11
Fatal error: Uncaught Exception: Third. in /in/WIvP6:17 Stack trace: #0 {main} thrown in /in/WIvP6 on line 17
Process exited with code 255.