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.
 
 

31 lines
482 B

--TEST--
finally runs before break and continue leave try block
--FILE--
<?php
function main(): void
{
for ($i = 0; $i < 3; $i++) {
try {
echo "try:$i\n";
if ($i === 0) {
continue;
}
if ($i === 1) {
break;
}
} finally {
echo "finally:$i\n";
}
echo "after:$i\n";
}
echo "done\n";
}
?>
--EXPECT--
try:0
finally:0
try:1
finally:1
done