- var_dump: documentation ( source)
- set_error_handler: documentation ( source)
<?php
$match = [];
set_error_handler (function ($a,$B,$C,$W,$q){
var_dump("qwqew", $a, $B,$C,$W,$q);
},E_NOTICE);
try {
$match[1];
} catch (\Exception $e) {
echo 'Exception:' . $e->getMessage();
}