3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function foo(array $test = array()) { var_dump($test); } } class B extends A { public function foo() { parent::foo(); } }
Output for 7.0.0 - 7.2.0
Warning: Declaration of B::foo() should be compatible with A::foo(array $test = Array) in /in/QQ7YS on line 17
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of B::foo() should be compatible with A::foo(array $test = Array) in /in/QQ7YS on line 17
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of B::foo() should be compatible with that of A::foo() in /in/QQ7YS on line 17