3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(DateTime::createFromFormat('Y-m-d', '2014-07-17')); print_r(DateTime::createFromFormat('d/m/Y', '07/17/2014'));
based on bXfeR
Output for 5.6.28, 7.0.14 - 7.1.0
DateTime Object ( [date] => 2014-07-17 10:54:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 10:54:33.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTime Object ( [date] => 2014-07-17 03:20:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:20:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTime Object ( [date] => 2014-07-17 16:34:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 16:34:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTime Object ( [date] => 2014-07-17 02:12:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 02:12:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTime Object ( [date] => 2014-07-17 02:24:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 02:24:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTime Object ( [date] => 2014-07-17 12:57:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 12:57:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTime Object ( [date] => 2014-07-17 13:11:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 13:11:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTime Object ( [date] => 2014-07-17 15:35:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 15:35:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTime Object ( [date] => 2014-07-17 22:23:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 22:23:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTime Object ( [date] => 2014-07-17 11:47:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 11:47:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTime Object ( [date] => 2014-07-17 00:45:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 00:45:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTime Object ( [date] => 2014-07-17 12:50:23.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 12:50:23.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTime Object ( [date] => 2014-07-17 06:53:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 06:53:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTime Object ( [date] => 2014-07-17 17:20:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 17:20:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTime Object ( [date] => 2014-07-17 18:13:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 18:13:14.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTime Object ( [date] => 2014-07-17 20:49:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 20:49:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTime Object ( [date] => 2014-07-17 00:46:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 00:46:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTime Object ( [date] => 2014-07-17 13:50:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 13:50:25.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTime Object ( [date] => 2014-07-17 21:07:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 21:07:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTime Object ( [date] => 2014-07-17 22:45:36.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 22:45:36.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTime Object ( [date] => 2014-07-17 03:57:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:57:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTime Object ( [date] => 2014-07-17 11:40:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 11:40:09.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.7
DateTime Object ( [date] => 2014-07-17 22:57:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 22:57:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTime Object ( [date] => 2014-07-17 01:47:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 01:47:45.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTime Object ( [date] => 2014-07-17 17:44:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 17:44:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTime Object ( [date] => 2014-07-17 13:04:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 13:04:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTime Object ( [date] => 2014-07-17 18:47:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 18:47:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTime Object ( [date] => 2014-07-17 09:45:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 09:45:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTime Object ( [date] => 2014-07-17 20:14:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 20:14:48.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTime Object ( [date] => 2014-07-17 14:47:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 14:47:01.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTime Object ( [date] => 2014-07-17 17:08:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 17:08:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTime Object ( [date] => 2014-07-17 19:36:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 19:36:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTime Object ( [date] => 2014-07-17 01:14:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 01:14:34.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTime Object ( [date] => 2014-07-17 07:15:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 07:15:03.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTime Object ( [date] => 2014-07-17 14:40:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 14:40:28.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.41 - 5.4.45
DateTime Object ( [date] => 2014-07-17 03:15:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:37.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.37 - 5.4.40
DateTime Object ( [date] => 2014-07-17 03:15:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:38.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30 - 5.4.36
DateTime Object ( [date] => 2014-07-17 03:15:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:39.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.22 - 5.4.29
DateTime Object ( [date] => 2014-07-17 03:15:40 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:40 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.18 - 5.4.21
DateTime Object ( [date] => 2014-07-17 03:15:41 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:41 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.14 - 5.4.17
DateTime Object ( [date] => 2014-07-17 03:15:42 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:42 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.9 - 5.4.13
DateTime Object ( [date] => 2014-07-17 03:15:43 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:43 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.5 - 5.4.8
DateTime Object ( [date] => 2014-07-17 03:15:44 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:44 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.1 - 5.4.4
DateTime Object ( [date] => 2014-07-17 03:15:45 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:45 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.26 - 5.4.0
DateTime Object ( [date] => 2014-07-17 03:15:46 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:46 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22 - 5.3.25
DateTime Object ( [date] => 2014-07-17 03:15:47 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:47 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.18 - 5.3.21
DateTime Object ( [date] => 2014-07-17 03:15:48 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:48 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.12 - 5.3.17
DateTime Object ( [date] => 2014-07-17 03:15:49 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:49 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.9 - 5.3.11
DateTime Object ( [date] => 2014-07-17 03:15:50 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:50 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.4 - 5.3.8
DateTime Object ( [date] => 2014-07-17 03:15:51 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:51 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.0 - 5.3.3
DateTime Object ( [date] => 2014-07-17 03:15:52 [timezone_type] => 3 [timezone] => Europe/Amsterdam ) DateTime Object ( [date] => 2015-05-07 03:15:52 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/SnV9e on line 2
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Fatal error: Call to undefined method DateTime::createfromformat() in /in/SnV9e on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/SnV9e on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/SnV9e on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/SnV9e on line 2