3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class My_DateTime extends DateTime { public static function createFromFormat(string $format, string $time, DateTimeZone $timezone = null) { return parent::createFromFormat($format, $time, $timezone); } }
based on HTuio
Output for 7.2.0
Warning: Declaration of My_DateTime::createFromFormat(string $format, string $time, ?DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, ?DateTimeZone $object = NULL) in /in/3Bs7U on line 9
Output for 7.1.0 - 7.1.10
Warning: Declaration of My_DateTime::createFromFormat(string $format, string $time, ?DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/3Bs7U on line 9
Output for 7.0.0 - 7.0.20
Warning: Declaration of My_DateTime::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/3Bs7U on line 9
Output for 5.4.10 - 5.6.28
Strict Standards: Declaration of My_DateTime::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/3Bs7U on line 9
Output for 5.3.20 - 5.3.29
Strict Standards: Declaration of My_DateTime::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/3Bs7U on line 9