3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php class Time extends DateTime { public static function createFromFormat(string $format , string $time, DateTimeZone $timezone = null) { return parent::createFromFormat($format, $time, $timezone); } } var_dump(DateTime::createFromFormat('Y-m-d', '2015-01-01'));
Output for 7.2.0
Warning: Declaration of Time::createFromFormat(string $format, string $time, ?DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, ?DateTimeZone $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0 - 7.1.10
Warning: Declaration of Time::createFromFormat(string $format, string $time, ?DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.20
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 13:26:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 09:27:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 21:34:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:58:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 05:12:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 08:18:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
Warning: Declaration of Time::createFromFormat(string $format, string $time, DateTimeZone $timezone = NULL) should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 10:12:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 16:20:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 08:29:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 05:42:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 14:39:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 02:12:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 11:01:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 11:50:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 17:33:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 18:12:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 08:41:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 15:07:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 17:13:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:39:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 07:09:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 02:20:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 10:43:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 08:41:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 18:36:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 05:21:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 13:42:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 08:30:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 11:59:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 13:38:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 19:54:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 03:19:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 09:43:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44 - 5.4.45
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42 - 5.4.43
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.39 - 5.4.40
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36 - 5.4.38
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34 - 5.4.35
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.31 - 5.4.32
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(26) "2015-01-01 22:32:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.27 - 5.4.29
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:32:58" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.23 - 5.4.26
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:32:59" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.20 - 5.4.22
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.17 - 5.4.19
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:01" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.13 - 5.4.16
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:02" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.11 - 5.4.12
Strict Standards: Declaration of Time::createFromFormat() should be compatible with DateTime::createFromFormat($format, $time, $object = NULL) in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:03" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29
Strict Standards: Declaration of Time::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:32:57" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28
Strict Standards: Declaration of Time::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.27
Strict Standards: Declaration of Time::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:01" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.24 - 5.3.26
Strict Standards: Declaration of Time::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:02" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.21 - 5.3.23
Strict Standards: Declaration of Time::createFromFormat() should be compatible with that of DateTime::createFromFormat() in /in/4tnZa on line 9 object(DateTime)#1 (3) { ["date"]=> string(19) "2015-01-01 22:33:03" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }