3v4l.org

run code in 200+ php & hhvm versions
<?php class ArrayClass { public function foo(array $foo) { // TODO } } class EverythingClass extends ArrayClass { public function foo($foo) { // TODO } }
based on c2LTT
Output for hhvm-3.18.5 - 3.22.0, 7.2.6 - 7.2.11
Output for 7.0.0 - 7.1.20
Warning: Declaration of EverythingClass::foo($foo) should be compatible with ArrayClass::foo(array $foo) in /in/J9JXR on line 17
Output for 5.6.0 - 5.6.30
Strict Standards: Declaration of EverythingClass::foo() should be compatible with ArrayClass::foo(array $foo) in /in/J9JXR on line 17