- chr: documentation ( source)
- register_shutdown_function: documentation ( source)
<?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());