3v4l.org

run code in 300+ PHP versions simultaneously
<?php class ExceptionThatExists extends Exception { // } try { throw new ExceptionThatExists(); } catch (NonExistentException $exception) { var_dump('Caught NonExistentException'); } catch (ExceptionThatExists $exception) { var_dump('Caught ExceptionThatExists'); }

preferences:
25.2 ms | 404 KiB | 5 Q