3v4l.org

run code in 300+ PHP versions simultaneously
<?php class My_DateTime extends DateTime { public static function createFromFormat($format, $time, DateTimeZone $timezone = null) { return parent::createFromFormat($format, $time, $timezone); } }
Output for 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.6
Deprecated: Return type of My_DateTime::createFromFormat($format, $time, ?DateTimeZone $timezone = null) should either be compatible with DateTime::createFromFormat(string $format, string $datetime, ?DateTimeZone $timezone = null): DateTime|false, or the #[\ReturnTypeWillChange] attribute should be used to temporarily suppress the notice in /in/HTuio on line 5
Output for 7.2.0 - 7.2.33, 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30
Output for 7.1.0 - 7.1.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 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.5.24 - 5.5.35, 5.6.8 - 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

preferences:
155.93 ms | 402 KiB | 183 Q