3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat('Y-m', '2010-02'); var_dump($date,true);
based on XK3IM
Output for 5.6.28, 7.0.20 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-03-02 17:25:37.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-02-03 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-02-03 06:30:07.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-02-10 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-02-18 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-02-23 01:28:13.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-02-24 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-02-27 07:08:03.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-02-02 13:13:21.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-02-10 05:29:20.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-02-08 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-02-15 11:08:08.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-02-19 22:48:28.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-02-28 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-03-01 08:45:55.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-02-02 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-02-15 14:59:52.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-02-20 05:28:45.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-02-24 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-02-25 13:54:05.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-02-27 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-03-02 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-02-22 19:39:26.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-02-11 07:41:22.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-02-09 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-02-17 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-02-21 01:47:43.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-02-01 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-02-17 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-02-21 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-02-22 10:30:30.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-02-26 16:37:09.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-02-28 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-02-24 06:02:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:28.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.44
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.43
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.41 - 5.4.42
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.39 - 5.4.40
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:32.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.36 - 5.4.38
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:33.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.34 - 5.4.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.31 - 5.4.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:35.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.30
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-10 15:16:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.26 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.28, 5.4.23 - 5.4.25
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.18 - 5.4.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.25 - 5.3.27, 5.4.15 - 5.4.17
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.21 - 5.3.24, 5.4.11 - 5.4.14
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.19 - 5.3.20, 5.4.9 - 5.4.10
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:41" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-10 15:16:35" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)