3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Animal { public function __construct(); public function __toString(); } interface Human { } class People implements Animal, Human { public function __construct() { // } } new People(); //
based on Obb4c
Output for 7.0.0 - 7.2.0
Fatal error: Class People contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Animal::__toString) in /in/iC1Pn on line 11
Process exited with code 255.
Output for 5.3.21 - 5.6.28
Fatal error: Class People contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Animal::__toString) in /in/iC1Pn on line 15
Process exited with code 255.