3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class ClassA { public function filterFile($file) { } } class ClassB extends ClassA { public function filterFile(Csv $file) { } }
Output for 7.0.0 - 7.2.0
Warning: Declaration of ClassB::filterFile(Csv $file) should be compatible with ClassA::filterFile($file) in /in/0EgAH on line 15
Output for 5.4.11 - 5.6.28
Strict Standards: Declaration of ClassB::filterFile() should be compatible with ClassA::filterFile($file) in /in/0EgAH on line 15
Output for 5.3.21 - 5.3.29
Strict Standards: Declaration of ClassB::filterFile() should be compatible with that of ClassA::filterFile() in /in/0EgAH on line 15