3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat('Y-m-d', '2010-02-01'); var_dump($date,true);
based on 0v0M3
Output for 5.6.28, 7.0.20 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 17:26:44.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-01 18:03:18.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-01 06:30:02.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-01 18:15:18.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-01 19:18:30.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-01 01:28:06.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-01 05:11:16.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-01 07:07:56.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-01 13:13:15.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-01 05:29:14.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-01 02:25:42.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-01 11:08:02.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-01 22:48:21.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-01 07:55:00.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-02-01 08:45:48.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-01 10:38:35.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-01 14:59:45.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-01 05:28:38.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-01 11:44:40.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-01 13:53:59.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-01 19:03:47.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-02-01 03:56:56.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-01 19:39:19.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-01 07:41:16.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-01 05:04:00.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-01 14:45:46.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-01 01:47:36.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:17.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-01 05:23:58.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-01 08:41:57.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-01 10:30:24.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-01 16:37:04.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-01 23:28:05.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-01 06:02:49.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-01 22:23:54.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-01 22:23:57.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-01 22:24:00.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.42
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.41
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:03.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.40
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:06.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.39
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:08.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.38
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.36 - 5.4.37
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:11.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.35
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:13.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.34
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:15.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.32
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:17.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.31
object(DateTime)#1 (3) { ["date"]=> string(26) "2010-02-01 22:24:18.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-01 22:24:19.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:20" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.28
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:21" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.27
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:22" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.26
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:23" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.25
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:24" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.23 - 5.4.24
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:26" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.21 - 5.4.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:28" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.20
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:29" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.19
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:31" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.18
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:32" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.27, 5.4.17
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:33" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.15 - 5.4.16
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:35" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.25, 5.4.14
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:36" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.24, 5.4.13
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:37" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.23, 5.4.12
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:38" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.20, 5.4.11
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:40" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.4.9 - 5.4.10
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24: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-01 22:24:17" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.28
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:27" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.26
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:34" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.21 - 5.3.22
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:39" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)
Output for 5.3.19
object(DateTime)#1 (3) { ["date"]=> string(19) "2010-02-01 22:24:42" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(true)