3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $multidim = array( 0 => array( 'width' => 444, 'height' => 555, 'name' => 'testname', ) ); $it = new \RecursiveIteratorIterator( new \RecursiveArrayIterator( $multidim ) ); while ( $it->valid( )) { $iit = $it->getInnerIterator(); var_dump($iit); $it->next(); }
Output for 7.0.0 - 7.1.0
object(RecursiveArrayIterator)#2 (1) { ["storage":"ArrayIterator":private]=> array(1) { [0]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } } object(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } object(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } object(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } }
Output for hhvm-3.10.0 - 3.12.0
object(RecursiveArrayIterator)#2 (2) { ["storage":"ArrayIterator":private]=> array(1) { [0]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } ["flags":"ArrayIterator":private]=> int(0) } object(RecursiveArrayIterator)#3 (2) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } ["flags":"ArrayIterator":private]=> int(0) } object(RecursiveArrayIterator)#3 (2) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } ["flags":"ArrayIterator":private]=> int(0) } object(RecursiveArrayIterator)#3 (2) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } ["flags":"ArrayIterator":private]=> int(0) }
Output for 5.3.0 - 5.6.28
object(RecursiveArrayIterator)#2 (1) { ["storage":"ArrayIterator":private]=> array(1) { [0]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } } object(RecursiveArrayIterator)#3 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } object(RecursiveArrayIterator)#3 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } object(RecursiveArrayIterator)#3 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } }
Output for 5.1.0 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 object(RecursiveArrayIterator)#2 (1) { [0]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } object(RecursiveArrayIterator)#3 (3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } object(RecursiveArrayIterator)#3 (3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } object(RecursiveArrayIterator)#3 (3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" }
Output for 5.0.0 - 5.0.5
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Fatal error: Class 'RecursiveArrayIterator' not found in /in/tYlj0 on line 11
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /in/tYlj0 on line 11
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/tYlj0 on line 11 Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /in/tYlj0 on line 11