3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MergeVariableList extends ArrayIterator {} $a = new MergeVariableList(); $a['test'] = 'toto'; echo $a['test'];
Output for 5.0.0 - 7.1.7, 7.2.0
toto
Output for 7.1.10

Process exited with code 137.
Output for 4.3.2 - 4.4.9
Fatal error: Class mergevariablelist: Cannot inherit from undefined class arrayiterator in /in/4s2mG on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Class mergevariablelist: Cannot inherit from undefined class arrayiterator in /in/4s2mG on line 3