3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d = DateTime::createFromFormat('m-d-Y', '0fds7'); $d2 = DateTime::createFromFormat('m-d-Y', '1-17-2017'); var_dump($d, $d2);
based on iDpXF
Output for 5.6.28, 7.0.20 - 7.2.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.6
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 13:33:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.5
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 09:33:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.4
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 21:40:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.3
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 23:05:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.2
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 05:18:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.1
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 08:24:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 7.0.0
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 10:18:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.21
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 16:26:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.20
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 08:35:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.19
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 05:48:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.18
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 14:46:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.17
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 02:19:01.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.16
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 11:07:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.15
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 11:56:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.14
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 17:39:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.13
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 18:18:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.12
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 08:47:43.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.11
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 15:13:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.10
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 17:19:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.9
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 22:45:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.6.8
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 07:15:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.35
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 02:28:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 10:49:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.33
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 08:47:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.32
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 18:43:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.31
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 05:28:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.30
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 13:48:41.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.29
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 08:36:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.28
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 12:06:59.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.27
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 13:44:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.26
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 20:00:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.25
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 03:26:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.5.24
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 09:49:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.45
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.44
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.42 - 5.4.43
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:49.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.41
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.40
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.38 - 5.4.39
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.35 - 5.4.37
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.34
bool(false) object(DateTime)#1 (3) { ["date"]=> string(26) "2017-01-17 00:42:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.31 - 5.4.32
bool(false) object(DateTime)#2 (3) { ["date"]=> string(26) "2017-01-17 00:42:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.30
bool(false) object(DateTime)#2 (3) { ["date"]=> string(26) "2017-01-17 00:42:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.28 - 5.4.29
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:42:56" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.25 - 5.4.27
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:42:57" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.28, 5.4.22 - 5.4.24
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:42:58" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.4.18 - 5.4.21
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:42:59" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:43:00" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.21 - 5.3.24, 5.4.11 - 5.4.14
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:43:01" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }
Output for 5.3.29
bool(false) object(DateTime)#2 (3) { ["date"]=> string(19) "2017-01-17 00:42:55" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" }