TypePHP 编译器 https://swoole.com/aot/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

23 lines
297 B

--TEST--
any
--FILE--
<?php
class TestX {
public function run() {
var_dump(__CLASS__);
var_dump(__METHOD__);
}
}
function test(TestX $o) {
$o->run();
}
function main()
{
$obj = new TestX();
test($obj);
}
?>
--EXPECT--
string(5) "TestX"
string(10) "TestX::run"