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.
 
 

16 lines
340 B

--TEST--
Internal function named arguments are validated before optimization
--FILE--
<?php
function main(): void
{
var_dump(strlen(string: "abc"));
var_dump(str_replace(replace: "x", subject: "abc", search: "a"));
var_dump(substr(length: 2, string: "abcdef", offset: 3));
}
?>
--EXPECT--
int(3)
string(3) "xbc"
string(2) "de"