<?php

set_error_handler(function($_, $msg, $file) {
    var_dump($msg, $file);
    echo $undefined;
});

/* This is just a particular example of a non-fatal compile-time error
 * If this breaks in future, just find another example and use it instead */
eval('class A { private function __invoke() { } }');

?>