3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class My_DateTime extends DateTime { public static function createFromFormat($format, $time, DateTimeZone $timezone = null) { return parent::createFromFormat($format, $time, $timezone); } }
based on cYOGL
Output for 7.2.0
Output for 7.1.0 - 7.1.10
Warning: Declaration of My_DateTime::createFromFormat($format, $time, ?DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/HTuio on line 9
Output for 7.0.0 - 7.0.20
Warning: Declaration of My_DateTime::createFromFormat($format, $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/HTuio 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/HTuio 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/HTuio on line 9