3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(\DateTime::createFromFormat('Y-m-d His', null . ' 000000')); var_dump(new \DateTime(null));
based on e3tf0
Output for 7.2.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.004673" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.10
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.004529" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.7
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.007986" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.6
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.013234" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.5
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.010693" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.1.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.004195" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.28, 7.0.14 - 7.0.20
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-03 05:44:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-02 18:49:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-10 04:46:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-18 05:08:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-21 15:35:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-23 16:11:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-26 17:57:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-02 00:48:18.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-09 14:06:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-07 04:50:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-14 17:48:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-19 09:31:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-27 19:44:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-28 20:37:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-01 23:07:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-15 03:09:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-19 16:37:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-22 23:33:22.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-25 01:25:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-27 06:26:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-29 14:17:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.7
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-25 04:07:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-22 04:36:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-10 20:03:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-08 15:42:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-16 21:34:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-20 12:22:16.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-03-31 22:38:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-16 17:14:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-20 19:40:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-21 21:59:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-26 03:49:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-04-28 09:47:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2016-05-23 16:39:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.43
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.39
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:35:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.38
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:34:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.37
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:34:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.36
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:34:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.35
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2015-09-07 06:34:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2014-11-03 18:24:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30 - 5.4.32
bool(false) object(DateTime)#2 (3) { ["date"]=> string(26) "2014-11-03 18:24:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.21 - 5.4.29
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2014-11-03 18:24:53" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29 - 5.4.20
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2014-11-03 18:24:54" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.7 - 5.3.28
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2014-11-03 18:24:55" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.0 - 5.3.6
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2014-11-03 18:24:56" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.2.10 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 4 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/8MoZC on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 4 Fatal error: Call to undefined method DateTime::createfromformat() in /in/8MoZC on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 4 Fatal error: Class 'DateTime' not found in /in/8MoZC on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 4 Fatal error: Undefined class name 'datetime' in /in/8MoZC on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/8MoZC on line 4 Fatal error: Undefined class name 'datetime' in /in/8MoZC on line 3