3v4l.org

run code in 150+ 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.0
Warning: Declaration of B::foo($a, $b) should be compatible with A::foo($a) in /in/kZSBn on line 17
Output for 4.3.0 - 4.4.9, hhvm-3.10.0 - 3.12.0
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