- var_dump: documentation ( source)
<?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
}
}