Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

--TEST-- Bug #71153: Performance Degradation in ArrayIterator with large arrays --FILE-- <..

Decoded Output download

--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
";

?>
--EXPECT--
done

Did this file decode correctly?

Original Code

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

Function Calls

None

Variables

None

Stats

MD5 5add4efaeea56290273f2ed5e0377493
Eval Count 0
Decode Time 85 ms