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.
 
 

27 lines
399 B

<?php
//function test(&$b) {
// $b[] = 4;
//}
function test2($a, $b, $c)
{
return $a + $b + $c;
}
function main()
{
// test2(1, 2, 3);
// test2(c: 2, b: 3, a: 1);
// var_dump(str_contains(haystack: 'hello', needle: 'll'));
// $a = [1, 2, 3];
// $b = &$a;
// $b[] = 5;
//
// $c = &$b;
// $c [] = 6;
// var_dump($a, $b, $c);
// test($a);
// var_dump($a);
}