3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Test { public function __construct($test) { } public function test() { } } class Test2 extends Test { public function __construct($test, $test2) { } public function test($test) { } }
based on Yklgr
Output for 7.0.0 - 7.2.0
Warning: Declaration of Test2::test($test) should be compatible with Test::test() in /in/nsb66 on line 27
Output for 5.4.11 - 5.6.28
Strict Standards: Declaration of Test2::test() should be compatible with Test::test() in /in/nsb66 on line 27
Output for 5.3.21 - 5.3.29
Strict Standards: Declaration of Test2::test() should be compatible with that of Test::test() in /in/nsb66 on line 27