3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo implements Iterator {}; $foo = new Foo();
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.3.0rc3
Fatal error: Class Foo contains 5 abstract methods and must therefore be declared abstract or implement the remaining methods (Iterator::current, Iterator::next, Iterator::key, ...) in /in/gAlRI on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught Error: Class Foo contains abstract method (current) and must therefore be declared abstract or implement the remaining methods in /in/gAlRI:3 Stack trace: #0 {main}
Process exited with code 255.