3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = \DateTime::createFromFormat('mdY', '03261984'); var_dump($date); $date = \DateTime::createFromFormat('m/d/Y', '03261984'); var_dump($date);
based on tH5Yh
Output for 5.6.28, 7.0.20 - 7.2.0
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 07:27:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.6
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 02:48:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.5
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 16:03:52.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.4
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 01:37:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.3
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 01:48:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.2
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 12:22:56.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.1
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 12:35:58.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 7.0.0
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 15:02:27.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.21
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 21:50:09.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.20
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 11:15:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.19
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 23:54:12.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.18
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 12:15:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.17
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 06:16:55.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.16
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 16:46:48.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.15
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 17:40:34.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.14
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 20:17:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.13
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 00:06:50.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.12
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 13:16:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.11
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 20:32:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.10
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 22:12:38.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.9
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 03:23:14.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.8
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 10:58:29.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.6.7
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 22:03:26.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.35
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 01:13:54.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.34
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 17:12:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.33
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 12:28:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.32
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 18:10:36.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.31
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 09:09:30.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.30
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 19:41:37.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.29
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 14:14:02.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.28
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 16:33:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.27
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 19:03:31.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.26
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 00:32:42.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.25
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 06:39:53.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.5.24
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 14:08:46.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.45
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 10:31:57.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.40 - 5.4.44
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 07:27:20.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.30 - 5.4.39
object(DateTime)#1 (3) { ["date"]=> string(26) "1984-03-26 07:27:21.000000" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.27 - 5.4.29
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:21" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.15 - 5.4.26
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:22" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.4.1 - 5.4.14
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:23" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.19 - 5.4.0
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:24" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.6 - 5.3.18
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:25" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.3.0 - 5.3.5
object(DateTime)#1 (3) { ["date"]=> string(19) "1984-03-26 07:27:26" ["timezone_type"]=> int(3) ["timezone"]=> string(16) "Europe/Amsterdam" } bool(false)
Output for 5.2.10 - 5.2.17
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 7 Fatal error: Call to undefined method DateTime::createFromFormat() in /in/kaccd on line 3
Process exited with code 255.
Output for 5.2.0 - 5.2.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 7 Fatal error: Call to undefined method DateTime::createfromformat() in /in/kaccd on line 3
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 7 Fatal error: Class 'DateTime' not found in /in/kaccd on line 3
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 7 Fatal error: Undefined class name 'datetime' in /in/kaccd on line 3
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 3 Warning: Unexpected character in input: '\' (ASCII=92) state=1 in /in/kaccd on line 7 Fatal error: Undefined class name 'datetime' in /in/kaccd on line 3