3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php print_r(DateTime::createFromFormat('j/n/Y', '7/17/2014'));
Output for 5.6.28, 7.0.14 - 7.1.0
DateTime Object ( [date] => 2015-05-07 10:51:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.6
DateTime Object ( [date] => 2015-05-07 19:01:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.5
DateTime Object ( [date] => 2015-05-07 16:10:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.4
DateTime Object ( [date] => 2015-05-07 02:12:15.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.3
DateTime Object ( [date] => 2015-05-07 02:24:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.2
DateTime Object ( [date] => 2015-05-07 12:57:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.1
DateTime Object ( [date] => 2015-05-07 13:10:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 7.0.0
DateTime Object ( [date] => 2015-05-07 15:34:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for hhvm-3.12.0
DateTime Object ( [date] => 2015-05-07 03:18:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for hhvm-3.10.0
DateTime Object ( [date] => 2015-05-07 21:32:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.21
DateTime Object ( [date] => 2015-05-07 21:16:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.20
DateTime Object ( [date] => 2015-05-07 13:15:13.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.19
DateTime Object ( [date] => 2015-05-07 00:44:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.18
DateTime Object ( [date] => 2015-05-07 12:49:59.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.17
DateTime Object ( [date] => 2015-05-07 06:53:02.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.16
DateTime Object ( [date] => 2015-05-07 17:20:12.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.15
DateTime Object ( [date] => 2015-05-07 18:12:54.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.14
DateTime Object ( [date] => 2015-05-07 20:54:27.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.13
DateTime Object ( [date] => 2015-05-07 21:42:04.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.12
DateTime Object ( [date] => 2015-05-07 12:44:26.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.11
DateTime Object ( [date] => 2015-05-07 18:38:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.10
DateTime Object ( [date] => 2015-05-07 20:46:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.9
DateTime Object ( [date] => 2015-05-07 02:45:17.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.6.8
DateTime Object ( [date] => 2015-05-07 10:32:17.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.35
DateTime Object ( [date] => 2015-05-07 10:25:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.34
DateTime Object ( [date] => 2015-05-07 15:31:56.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.33
DateTime Object ( [date] => 2015-05-07 13:04:10.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.32
DateTime Object ( [date] => 2015-05-07 18:46:57.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.31
DateTime Object ( [date] => 2015-05-07 09:45:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.30
DateTime Object ( [date] => 2015-05-07 20:14:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.29
DateTime Object ( [date] => 2015-05-07 11:51:58.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.28
DateTime Object ( [date] => 2015-05-07 15:33:41.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.27
DateTime Object ( [date] => 2015-05-07 17:04:43.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.26
DateTime Object ( [date] => 2015-05-07 23:28:50.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.25
DateTime Object ( [date] => 2015-05-07 07:03:18.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.5.24
DateTime Object ( [date] => 2015-05-07 14:10:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.45
DateTime Object ( [date] => 2015-05-07 14:20:06.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.44
DateTime Object ( [date] => 2015-05-07 14:19:59.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.43
DateTime Object ( [date] => 2015-05-07 14:19:53.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.42
DateTime Object ( [date] => 2015-05-07 14:19:51.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.41
DateTime Object ( [date] => 2015-05-07 14:19:49.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.40
DateTime Object ( [date] => 2015-05-07 14:19:46.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.39
DateTime Object ( [date] => 2015-05-07 14:19:44.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.38
DateTime Object ( [date] => 2015-05-07 05:26:30.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.35 - 5.4.37
DateTime Object ( [date] => 2015-05-07 05:26:22.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.34
DateTime Object ( [date] => 2015-05-07 05:26:21.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.30 - 5.4.32
DateTime Object ( [date] => 2015-05-07 10:51:19.000000 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.27 - 5.4.29
DateTime Object ( [date] => 2015-05-07 10:51:19 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.4.10 - 5.4.26
DateTime Object ( [date] => 2015-05-07 10:51:20 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.22 - 5.4.9
DateTime Object ( [date] => 2015-05-07 10:51:21 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.2 - 5.3.21
DateTime Object ( [date] => 2015-05-07 10:51:22 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.3.0 - 5.3.1
DateTime Object ( [date] => 2015-05-07 10:51:23 [timezone_type] => 3 [timezone] => Europe/Amsterdam )
Output for 5.2.10 - 5.2.17
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/ObDpr 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/ObDpr on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/ObDpr on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Undefined class name 'datetime' in /in/ObDpr on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Undefined class name 'datetime' in /in/ObDpr on line 2