While we are at it, why not add a error handler too?

set_error_handler(function($code, $message, $file, $line, $context) {
echo "Error $code occurred: $message" . PHP_EOL;
echo "On line $line of $file" . PHP_EOL;
debug_print_backtrace(DEBUG_BACKTRACE_IGNORE_ARGS);
die("Execution killed in " . __FILE__);
});