3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class MyDateTime extends DateTime { public function sub(DateInterval $interval) { // Do nothing } }
based on 7kdDT
Output for 7.0.0 - 7.2.0
Warning: Declaration of MyDateTime::sub(DateInterval $interval) should be compatible with DateTime::sub($interval) in /in/euP4T on line 8
Output for 5.4.2 - 5.6.28
Strict Standards: Declaration of MyDateTime::sub() should be compatible with DateTime::sub($interval) in /in/euP4T on line 8
Output for 5.3.18 - 5.3.29
Strict Standards: Declaration of MyDateTime::sub() should be compatible with that of DateTime::sub() in /in/euP4T on line 8