3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php class IncrementIterator implements Iterator { protected $start; protected $end; protected $current; public function __construct($start, $end) { $this->start = $start; $this->end = $end; } public function rewind() { $this->current = $this->start; } public function valid() { return $this->current <= $this->end; } public function key() { return $this->current; } public function current() { return $this->current; } public function next() { $this->current++; } } class NestedIterator implements Iterator { protected $iterators = array(); protected $lastIndex = -1; protected $iteration = 0; public function addIterator(Iterator $it) { $this->iterators[] = $it; $this->lastIndex++; } public function rewind() { foreach ($this->iterators as $it) { $it->rewind(); } $this->iteration = 0; } public function valid() { return $this->lastIndex >= 0 && $this->iterators[0]->valid(); } public function key() { return $this->iteration; } public function current() { $return = array(); foreach ($this->iterators as $current) { $return[] = $current; } return $return; } public function next() { for ($i = $this->lastIndex; $i >= 0; $i--) { $this->iterators[$i]->next(); if (!$this->iterators[$i]->valid()) { continue; } for ($j = $i + 1; $j <= $this->lastIndex; $j++) { $this->iterators[$j]->rewind(); } } } } $nestedIterator = new NestedIterator(); $nestedIterator->addIterator(new IncrementIterator(0, 26)); $nestedIterator->addIterator(new IncrementIterator(0, 26)); $nestedIterator->addIterator(new IncrementIterator(0, 26)); $nestedIterator->addIterator(new IncrementIterator(0, 26)); foreach ($nestedIterator as $current) { var_dump($current); }
based on TFref
Output for 5.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(1) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(2) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(3) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(4) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(5) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(6) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(7) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(8) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(9) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(10) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(11) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(12) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(13) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(14) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(15) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(16) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(17) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(18) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(19) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(20) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(21) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(22) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(23) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(24) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(25) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(26) } [1]=> object(IncrementIterator)#3 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start":protected]=> int(0) ["end":protected]=> int(26) ["current":protected]=> int(0) } }
Output for 5.0.0 - 5.2.17
array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(1) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(2) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(3) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(4) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(5) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(6) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(7) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(8) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(9) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(10) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(11) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(12) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(13) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(14) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(15) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(16) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(17) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(18) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(19) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(20) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(21) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(22) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(23) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(24) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(25) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } } array(4) { [0]=> object(IncrementIterator)#2 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(26) } [1]=> object(IncrementIterator)#3 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [2]=> object(IncrementIterator)#4 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } [3]=> object(IncrementIterator)#5 (3) { ["start:protected"]=> int(0) ["end:protected"]=> int(26) ["current:protected"]=> int(0) } }
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_STRING, expecting '{' in /in/C3WHs on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_STRING, expecting '{' in /in/C3WHs on line 2
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error, expecting `'{'' in /in/C3WHs on line 2
Process exited with code 255.