3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class A { public function addCommands(iterable $commands) { } } class B extends A { public function addCommands(array $commands) { } }
based on Vudeb
Output for 7.0.0 - 7.2.6
Warning: Declaration of B::addCommands(array $commands) should be compatible with A::addCommands(iterable $commands) in /in/tp9sd on line 13
Output for hhvm-3.18.5 - 3.22.0
Output for 5.6.0 - 5.6.30
Strict Standards: Declaration of B::addCommands() should be compatible with A::addCommands(iterable $commands) in /in/tp9sd on line 13