3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface bird { /*function setKind(string $type); function getKind(); function getLocation(); function setLocation(location $location); function flyTo(location $location); function setMelody(string $melody); function singMelody(); // вывод зависит от kind function killBird();*/ function cloneBird(int $count); } class Sparrow implements Bird { }
based on Y0v3M
Output for 7.0.0 - 7.2.0
Fatal error: Class Sparrow contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bird::cloneBird) in /in/Pjl0c on line 22
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Class Sparrow contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (bird::cloneBird) in /in/Pjl0c on line 24
Process exited with code 255.