3v4l.org

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