3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function add() {} } class B extends A { public function add(A $i) {} }
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::add(A $i) should be compatible with A::add() in /in/hViWi on line 11
Output for 5.4.11 - 5.6.28
Strict Standards: Declaration of B::add() should be compatible with A::add() in /in/hViWi on line 11
Output for 5.3.21 - 5.3.29
Strict Standards: Declaration of B::add() should be compatible with that of A::add() in /in/hViWi on line 11