mirror of
https://github.com/php/php-src.git
synced 2024-09-29 13:56:09 +00:00
17 lines
223 B
PHP
17 lines
223 B
PHP
--TEST--
|
|
Bug #71153: Performance Degradation in ArrayIterator with large arrays
|
|
--FILE--
|
|
<?php
|
|
|
|
$n = 200000;
|
|
|
|
for ($i = 0; $i < $n; ++$i) {
|
|
foreach (new ArrayIterator([]) as $v) {}
|
|
}
|
|
|
|
echo "done\n";
|
|
|
|
?>
|
|
--EXPECT--
|
|
done
|