3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function foo(array $bar) { } } class B extends A { public function foo(array $bar, string $baz) { } }
based on ep0uT
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::foo(array $bar, string $baz) should be compatible with A::foo(array $bar) in /in/GjSHs on line 10
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of B::foo() should be compatible with A::foo(array $bar) in /in/GjSHs on line 10
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in /in/GjSHs on line 10