3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat('Y-m-d', '2010-05-00'); var_dump($date,true);
based on EhDId
Output for 5.6.28, 7.0.20 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 17:23:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 18:03:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 06:30:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 18:15:24.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 19:18:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 01:28:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 05:11:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 07:08:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 13:13:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 05:29:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 02:25:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 11:08:07.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 22:48:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 07:55:05.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 08:45:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 10:38:40.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 14:59:51.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 05:28:44.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 11:44:47.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 13:54:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 19:03:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 03:57:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 19:39:25.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 07:41:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 05:04:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 14:45:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 01:47:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 10:39:23.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 05:24:04.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 08:42:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 10:30:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 16:37:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 23:28:10.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 06:02:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.41 - 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 17:23:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.30 - 5.4.40
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-04-30 17:23:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.22 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-04-30 17:23:16" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.13 - 5.4.21
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-04-30 17:23:17" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.3 - 5.4.12
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-04-30 17:23:18" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.24 - 5.4.2
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-04-30 17:23:19" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.19 - 5.3.23
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-04-30 17:23:20" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)