set_exception_handler
symfony/var-dumper
Supported Versions: PHP 5, PHP 7, PHP 8
Sets a user-defined exception handler function
<?php set_exception_handler
(?callable
$callback
): ?callable