- var_dump: documentation ( source)
<?php
class TestException extends Exception{}
try {
throw new TestException();
} catch(TestException $e) {
var_dump('catched TestException');
throw $e;
} catch (Exception $e) {
var_dump('catched exception');
}