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.
 
 

18 lines
290 B

--TEST--
Tuple multi-return fast path can discard trailing values
--FILE--
<?php
function multi_return_three_values(): array
{
return [1, 2, 3];
}
function main(): void
{
[$first, $second] = multi_return_three_values();
var_dump($first, $second);
}
?>
--EXPECT--
int(1)
int(2)