<?php
function exception_error_handler($errno, $errstr, $errfile, $errline ) {
throw new ErrorException($errstr, $errno, 0, $errfile, $errline);
}
$arr = [];
try {
$d = $arr['not_exists'];
} catch(ErrorException $e) {
echo "Something went wrong...";
}
PD9waHAKCmZ1bmN0aW9uIGV4Y2VwdGlvbl9lcnJvcl9oYW5kbGVyKCRlcnJubywgJGVycnN0ciwgJGVycmZpbGUsICRlcnJsaW5lICkgewogICAgdGhyb3cgbmV3IEVycm9yRXhjZXB0aW9uKCRlcnJzdHIsICRlcnJubywgMCwgJGVycmZpbGUsICRlcnJsaW5lKTsKfQpzZXRfZXJyb3JfaGFuZGxlcigiZXhjZXB0aW9uX2Vycm9yX2hhbmRsZXIiKTsKCiRhcnIgPSBbXTsKdHJ5IHsKCSRkID0gJGFyclsnbm90X2V4aXN0cyddOwp9IGNhdGNoKEVycm9yRXhjZXB0aW9uICRlKSB7CgllY2hvICJTb21ldGhpbmcgd2VudCB3cm9uZy4uLiI7Cn0=