xref: /php-src/ext/spl/tests/bug71153.phpt (revision a3e19527)
1--TEST--
2Bug #71153: Performance Degradation in ArrayIterator with large arrays
3--FILE--
4<?php
5
6$n = 200000;
7
8for ($i = 0; $i < $n; ++$i) {
9    foreach (new ArrayIterator([]) as $v) {}
10}
11
12echo "done\n";
13
14?>
15--EXPECT--
16done
17