- var_dump: documentation ( source)
- set_error_handler: documentation ( source)
<?php
set_error_handler(function () { return true; });
function foo() {
try {
new Closure;
return "hello";
} catch (Throwable $t) {
return "wat";
}
}
var_dump(foo());