<?php set_error_handler(function (int $errno, string $msg) { require __DIR__.'/b.php'; echo 'error handler called: ', $msg; }); $code = '<?php class _ {};'; $tokens = token_get_all($code, \TOKEN_PARSE); echo "\n\n"; foreach ($tokens as $token) { if (is_string($token)) { echo $token, "\n"; } else { echo token_name($token[0]) . ' "' . $token[1], "\"\n"; } }
You have javascript disabled. You will not be able to edit any code.