function test($x) { error_log("test " . $x); $obj = new cls(); $obj->pub($x); error_log("test done " . $x); }