3v4l.org

run code in 300+ PHP versions simultaneously
<?php try { throw new \Exception('Exception'); } catch (\Exception $e) { throw new \Exception('New Exception'); } finally { try{ myclass2::test(); // spl_autoload_register function to load classes } catch (\Exception $ex) { var_dump('this is not expected:', $ex); // this is not expected but "New Exception" is caught here } }

preferences:
25.65 ms | 404 KiB | 5 Q