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.
 
 

20 lines
327 B

--TEST--
Implicit break in match expression
--FILE--
<?php
function dump_and_return($string) {
var_dump($string);
return $string;
}
function main() {
var_dump(match ('foo') {
'foo' => dump_and_return('foo'),
'bar' => dump_and_return('bar'),
});
}
?>
--EXPECT--
string(3) "foo"
string(3) "foo"