3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { protected function testMethod($var1) { } } class B extends A { public function testMethod($var1, $var2) { } }
based on lalR4
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::testMethod($var1, $var2) should be compatible with A::testMethod($var1) in /in/rMs5e on line 17
Output for 5.4.11 - 5.6.21
Strict Standards: Declaration of B::testMethod() should be compatible with A::testMethod($var1) in /in/rMs5e on line 17
Output for 5.3.21 - 5.3.29
Strict Standards: Declaration of B::testMethod() should be compatible with that of A::testMethod() in /in/rMs5e on line 17