fork download
no = $no;
    }
    
    public function shutdownHandler() {
        echo $this->no.' called';
    }

}

$test1 = new Test(1);
$test2 = new Test(2);

register_shutdown_function(array($test1,'shutdownHandler'));


Success #stdin #stdout 0.01s 20568KB
stdin
Standard input is empty
stdout
1 called