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($gender) { // } } new People(); //
based on a8Wkb
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of People::__construct($gender) must be compatible with Animal::__construct() in /in/Obb4c on line 11
Process exited with code 255.
Output for 5.4.11 - 5.6.28
Fatal error: Declaration of People::__construct() must be compatible with Animal::__construct() in /in/Obb4c on line 11
Process exited with code 255.
Output for 5.3.21 - 5.3.29
Fatal error: Declaration of People::__construct() must be compatible with that of Animal::__construct() in /in/Obb4c on line 11
Process exited with code 255.