3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class NotThis extends \Exception { public function __construct($mess) { parent::__construct($mess); } } function goBla () { try { throw new \Exception("x"); } catch (\Exception $e) { echo "bla"; } finally { throw new \NotThis("x"); } } goBla();
based on aNj02
Output for 7.0.0 - 7.2.6
bla Fatal error: Uncaught NotThis: x in /in/ciieu:26 Stack trace: #0 /in/ciieu(31): goBla() #1 {main} thrown in /in/ciieu on line 26
Process exited with code 255.
Output for 5.6.0 - 5.6.26
bla Fatal error: Uncaught exception 'NotThis' with message 'x' in /in/ciieu:26 Stack trace: #0 /in/ciieu(31): goBla() #1 {main} thrown in /in/ciieu on line 26
Process exited with code 255.