3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { function __construct($a) {} function foo($a) {} } class B extends A { function __construct($a, $b) {} function foo($a, $b) {} }
Output for 7.0.0 - 7.1.7
Warning: Declaration of B::foo($a, $b) should be compatible with A::foo($a) in /in/kZSBn on line 17
Output for 5.4.0 - 5.6.28
Strict Standards: Declaration of B::foo() should be compatible with A::foo($a) in /in/kZSBn on line 17
Output for 5.0.0 - 5.3.29
Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in /in/kZSBn on line 17
Output for 4.3.0 - 4.4.9