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