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
301 B

--TEST--
Bug #78612 (strtr leaks memory when integer keys are used and the subject string shorter).
--FILE--
<?php
$find_replace = [];
$_a = 333000001;
$_b = 5000001;
for ($j=0; $j<10; $j++) {
$find_replace[$_a + $j] = $_b + $j;
}
echo strtr('Hello', $find_replace), "\n";
?>
--EXPECT--
Hello