3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Foo{ function method(array $a){ } } class Bar extends Foo{ /** * $a array */ function method($a){ } }
based on TYm0i
Output for hhvm-3.12.14 - 3.17.3, 7.2.0
Output for 7.0.0 - 7.1.7
Warning: Declaration of Bar::method($a) should be compatible with Foo::method(array $a) in /in/c0C7p on line 15
Output for 5.6.0 - 5.6.30
Strict Standards: Declaration of Bar::method() should be compatible with Foo::method(array $a) in /in/c0C7p on line 15