3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo { function qux() {} } class Bar extends Foo { function qux($foo, $bar) {} } $b = new Bar(); $b->qux(1, 2);
Output for 7.0.0 - 7.3.0rc3
Warning: Declaration of Bar::qux($foo, $bar) should be compatible with Foo::qux() in /in/05QYe on line 9
Output for 5.6.0 - 5.6.24
Strict Standards: Declaration of Bar::qux() should be compatible with Foo::qux() in /in/05QYe on line 9