3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php interface Specification { function isSatisfiedBy($object); } class Testing implements Specification { function isSatisfiedBy($object){} } class Testing2 implements Specification { function isSatisfiedBy(Testing $object){} }
Output for 7.0.0 - 7.2.0
Fatal error: Declaration of Testing2::isSatisfiedBy(Testing $object) must be compatible with Specification::isSatisfiedBy($object) in /in/CfRke on line 10
Process exited with code 255.
Output for 5.4.2 - 5.6.28
Fatal error: Declaration of Testing2::isSatisfiedBy() must be compatible with Specification::isSatisfiedBy($object) in /in/CfRke on line 10
Process exited with code 255.
Output for 5.3.18 - 5.3.29
Fatal error: Declaration of Testing2::isSatisfiedBy() must be compatible with that of Specification::isSatisfiedBy() in /in/CfRke on line 10
Process exited with code 255.