3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $array = array( 'dingo', 'wombat', 'wallaby' ); $it = new ArrayIterator( $array ); print_r($it);
Output for 5.3.0 - 7.1.0
ArrayIterator Object ( [storage:ArrayIterator:private] => Array ( [0] => dingo [1] => wombat [2] => wallaby ) )
Output for 5.0.0 - 5.2.17
ArrayIterator Object ( [0] => dingo [1] => wombat [2] => wallaby )
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: arrayiterator in /in/NRDk8 on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Cannot instantiate non-existent class: arrayiterator in /in/NRDk8 on line 3