3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $arrays = array( array('one', 1 => 'two', 2 => 'three' ), array('four', 1 => 'five', 2 => 'six' ), array('seven', 1 => 'eight', 2 => 'nine' ), ); print_r((array) new RecursiveIteratorIterator(new RecursiveArrayIterator($arrays)));
based on Ps70B
Output for 5.1.0 - 7.1.0
Array ( )
Output for 5.0.0 - 5.0.5
Fatal error: Class 'RecursiveArrayIterator' not found in /in/Lh6Q3 on line 10
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /in/Lh6Q3 on line 10
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: recursiveiteratoriterator in /in/Lh6Q3 on line 10