<?php
function shutdown()
{
// This is our shutdown function, in
// here we can do any last operations
// before the script is complete.
echo 'Script executed with success', PHP_EOL;
}
register_shutdown_function('shutdown');
class A {}
chr(new A());
Fatal error: Uncaught TypeError: chr(): Argument #1 ($codepoint) must be of type int, A given in /in/dPpnP:15
Stack trace:
#0 /in/dPpnP(15): chr(Object(A))
#1 {main}
thrown in /in/dPpnP on line 15
Script executed with success
Process exited with code 255.
Output for 7.4.0 - 7.4.33
Warning: chr() expects parameter 1 to be int, object given in /in/dPpnP on line 15
Script executed with success