3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arr = array( 20 => array( 'width' => 20, 'height' => 20, ), 60 => array( 'width' => 60, 'height' => 40, ), 150 => array( 'width' => 150, 'height' => 300, ) ); $it = new RecursiveArrayIterator( $arr ); while( $it->valid() ) { var_dump($it->current(); }
Output for 5.3.0 - 5.4.21
Parse error: syntax error, unexpected ';' in /in/LMYs2 on line 19
Process exited with code 255.