<?php
register_shutdown_function(function() {
echo "anyway, hello world\n";
});
set_error_handler(function($severity, $message, $file, $line) {
throw new ErrorException($message, 0, $severity, $file, $line);
});
set_exception_handler(function($exception) {
echo $exception->getMessage().PHP_EOL;
});
function a() {}
function a() {}
- Output for 7.2.0 - 7.2.34, 7.3.0 - 7.3.23, 7.4.0 - 7.4.11
- Fatal error: Cannot redeclare a() (previously declared in /in/oO4L7:14) in /in/oO4L7 on line 15
Process exited with code 255.
preferences:
157.15 ms | 996 KiB | 7 Q