3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Stuff implements Iterator, IteratorAggregate { function getIterator(){ return $this; } function current(){} function key(){} function next(){} function rewind(){} function valid(){} }
Output for 7.0.0 - 7.2.0
Fatal error: Class Stuff cannot implement both IteratorAggregate and Iterator at the same time in /in/65QUT on line 3
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class Stuff cannot implement both IteratorAggregate and Iterator at the same time in /in/65QUT on line 4
Process exited with code 255.