3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php abstract class Point { protected function calc(Point $point) { return $point; } } class Point2D extends Point { public function calc(Point2D $point) { return $point; } }
Output for 7.0.0 - 7.2.0
Warning: Declaration of Point2D::calc(Point2D $point) should be compatible with Point::calc(Point $point) in /in/laFi3 on line 13
Output for 5.4.11 - 5.6.28
Strict Standards: Declaration of Point2D::calc() should be compatible with Point::calc(Point $point) in /in/laFi3 on line 13
Output for 5.3.21 - 5.3.29
Strict Standards: Declaration of Point2D::calc() should be compatible with that of Point::calc() in /in/laFi3 on line 13