- get_defined_functions: documentation ( source)
- error_reporting: documentation ( source)
<?php
error_reporting(E_DEPRECATED);
foreach (get_defined_functions()['internal'] as $func) {
$ref = new \ReflectionFunction($func);
if ($ref->isDeprecated()) {
$func();
}
}