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.
26 lines
357 B
26 lines
357 B
<?php
|
|
function foo_test($a, $b, $c) {
|
|
return 1;
|
|
}
|
|
|
|
function foo2(): void
|
|
{
|
|
var_dump(__FUNCTION__);
|
|
return;
|
|
var_dump(__FUNCTION__);
|
|
}
|
|
|
|
function main()
|
|
{
|
|
var_dump(foo_test(1, 2, 3));
|
|
$o = new B;
|
|
$o->foo();
|
|
|
|
$c = new C;
|
|
$c->offsetSet(0, 1);
|
|
$c->offsetSet(1, 2);
|
|
var_dump($c);
|
|
var_dump($c->foo());
|
|
|
|
foo2();
|
|
}
|
|
|