3v4l.org

run code in 300+ PHP versions simultaneously
<?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();
Output for 7.0.0 - 7.0.20, 7.1.0 - 7.1.25, 7.2.0 - 7.2.33, 7.3.0 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.29, 8.2.0 - 8.2.20, 8.3.0 - 8.3.8
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.

preferences:
165.65 ms | 402 KiB | 208 Q