summaryrefslogtreecommitdiff
path: root/ext/spl/tests/bug71153.phpt
blob: bdd940cbee7a320fb6d658489b326153d021b96a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--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