3v4l.org

run code in 300+ PHP versions simultaneously
<?php $multidim = array( 0 => array( 'width' => 444, 'height' => 555, 'name' => 'testname', ) ); $it = new \RecursiveIteratorIterator( new \RecursiveArrayIterator( $multidim ) ); while ( $it->valid( )) { echo $it->current(); $iit = $it->getInnerIterator(); var_dump($iit); $it->next(); }
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Array to string conversion in /in/J6uqL on line 13 Arrayobject(RecursiveArrayIterator)#2 (1) { ["storage":"ArrayIterator":private]=> array(1) { [0]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } } 444object(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } 555object(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } } testnameobject(RecursiveArrayIterator)#4 (1) { ["storage":"ArrayIterator":private]=> array(3) { ["width"]=> int(444) ["height"]=> int(555) ["name"]=> string(8) "testname" } }

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
44.75 ms | 403 KiB | 8 Q