3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test1 { public function __construct($a, $b) {} public function foo($c) {} } class Test2 extends Test1 { public function __construct($e, $f, $g) {} public function foo($c, $d) {} } $bla = new Test2(1, 2, 3); $bla->foo(4, 5);
Output for 7.0.0 - 7.2.0
Warning: Declaration of Test2::foo($c, $d) should be compatible with Test1::foo($c) in /in/XgJqY on line 13
Output for 5.4.9 - 5.6.28
Strict Standards: Declaration of Test2::foo() should be compatible with Test1::foo($c) in /in/XgJqY on line 13
Output for 5.3.19 - 5.3.29
Strict Standards: Declaration of Test2::foo() should be compatible with that of Test1::foo() in /in/XgJqY on line 13