K: 0 Item: item Value: 1
K: 1 Item: item Value: 2
K: 2 Item: item Value: 3
----
Catchable fatal error: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable, instance of DOMNodeList given in /in/IGWHd on line 20
Process exited with code 255.
Output for 5.1.0 - 5.1.1, 5.1.3 - 5.1.6
K: 0 Item: item Value: 1
K: 1 Item: item Value: 2
K: 2 Item: item Value: 3
----
Fatal error: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable in /in/IGWHd on line 20
Process exited with code 255.
Output for 5.1.2
K: 0 Item: item Value: 1
K: 1 Item: item Value: 2
K: 2 Item: item Value: 3
----
Fatal error: Argument 1 passed to IteratorIterator::__construct() must implement interface Traversable in /in/IGWHd on line 21
Process exited with code 255.
Output for 5.0.2 - 5.0.5
K: 0 Item: item Value: 1
K: 1 Item: item Value: 2
K: 2 Item: item Value: 3
----
Fatal error: Class 'IteratorIterator' not found in /in/IGWHd on line 20
Process exited with code 255.
Output for 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/IGWHd on line 16
K: 0 Item: item Value: 1PHP_EOL
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/IGWHd on line 16
K: 1 Item: item Value: 2PHP_EOL
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/IGWHd on line 16
K: 2 Item: item Value: 3PHP_EOL
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/IGWHd on line 19
----PHP_EOL
Fatal error: Class 'IteratorIterator' not found in /in/IGWHd on line 20
Process exited with code 255.