- var_dump: documentation ( source)
<?php
function x() {
try {
throw new Exception('this will never be caught, but also never be seen');
} finally {
return 1;
}
}
try {
var_dump(x());
} catch (Throwable $e) {
echo "we're not going to catch it";
echo $e;
}