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.
 
 

22 lines
304 B

--TEST--
return assign array dim
--SKIPIF--
--FILE--
<?php
class TestReturnArrayDim
{
public function test()
{
$array['hello'] = [33];
return $array['world'] = 999;
}
}
function main()
{
$obj = new TestReturnArrayDim;
var_dump($obj->test());
}
?>
--EXPECT--
int(999)