3v4l.org

run code in 500+ 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:
83.41 ms | 1651 KiB | 5 Q