@ 2014-03-25T21:12:34Z <?php
$ref_date = '250314'; // $ref_date is picked up from an array
echo $ref_date; // prints "250314" so data is correct
$date = DateTime::createFromFormat('dmy', $ref_date);
var_dump($date); // result FALSE
echo $date->format('Y-m-d'); // Fatal error since $date not created
Enable javascript to submit You have javascript disabled. You will not be able to edit any code.
Output for 5.6.28 , 7.0.14 - 7.0.20 , 7.1.0 - 7.1.20 , 7.2.0 - 7.2.33 , 7.3.12 - 7.3.31 , 7.4.0 - 7.4.33 , 8.0.0 - 8.0.12 , 8.0.14 - 8.0.30 , 8.1.0 - 8.1.28 , 8.2.0 - 8.2.18 , 8.3.0 - 8.3.6 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 22:12:34.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.3.32 - 7.3.33 , 8.0.13 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 21:12:34.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(3) "UTC"
}
2014-03-25 Output for 7.0.7 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 23:12:34.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.6 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 23:28:23.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.5 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 13:04:12.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.4 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 21:52:27.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.3 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 22:17:20.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.2 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 09:01:56.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.1 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 08:40:06.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 7.0.0 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 11:52:50.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.21 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 18:33:40.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.20 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 08:21:42.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.19 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 18:51:14.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.18 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 07:16:49.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.17 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 02:50:54.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.16 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 13:35:10.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.15 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 14:25:31.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.14 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 17:18:59.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.13 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 21:15:41.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.12 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 10:15:09.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.11 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 17:36:21.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.10 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 19:13:46.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.9 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 00:10:20.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.8 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 07:49:26.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.6.7 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 17:20:34.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.35 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 21:40:10.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.34 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 13:45:42.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.33 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 09:00:20.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.32 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 18:05:27.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.31 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 05:48:07.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.30 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 16:38:18.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.29 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 11:12:29.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.28 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 13:18:35.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.27 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 16:06:26.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.26 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 21:26:38.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.25 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 03:30:52.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.5.24 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 11:16:19.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.45 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:40.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.44 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:44.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.43 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:48.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.42 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:49.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.41 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:50.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.40 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:53.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.39 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:56.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.38 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:57.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.36 - 5.4.37 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:25:59.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.35 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:26:00.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.34 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:26:02.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.32 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:26:03.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.31 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:26:04.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.30 250314object(DateTime)#1 (3) {
["date"]=>
string(26) "2014-03-25 12:26:05.000000"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.28 - 5.4.29 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:06"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.27 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:07"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.25 - 5.4.26 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:08"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.23 - 5.4.24 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:10"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.21 - 5.4.22 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:12"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.20 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:13"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.18 - 5.4.19 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:15"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.17 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:17"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.26 , 5.4.16 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:18"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.25 , 5.4.14 - 5.4.15 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:19"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.24 , 5.4.13 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:20"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.23 , 5.4.12 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:21"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.21 - 5.3.22 , 5.4.11 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:22"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.20 , 5.4.10 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:23"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.19 , 5.4.9 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:24"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.18 , 5.4.8 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:25"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.17 , 5.4.7 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:26"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.15 - 5.3.16 , 5.4.6 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:27"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.14 , 5.4.5 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:28"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.4.3 - 5.4.4 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:29"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.11 , 5.4.1 - 5.4.2 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:31"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.10 , 5.4.0 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:32"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.29 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:04"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.28 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:11"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.27 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:16"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.12 - 5.3.13 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:30"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.8 - 5.3.9 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:33"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.5 - 5.3.7 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:34"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.4 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:36"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.2 - 5.3.3 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:37"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.1 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:38"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.3.0 250314object(DateTime)#1 (3) {
["date"]=>
string(19) "2014-03-25 12:26:39"
["timezone_type"]=>
int(3)
["timezone"]=>
string(16) "Europe/Amsterdam"
}
2014-03-25 Output for 5.2.10 - 5.2.17 250314
Fatal error: Call to undefined method DateTime::createFromFormat() in /in/EYZHI on line 5
Process exited with code 255 . Output for 5.2.0 - 5.2.9 250314
Fatal error: Call to undefined method DateTime::createfromformat() in /in/EYZHI on line 5
Process exited with code 255 . Output for 5.0.0 - 5.0.5 , 5.1.1 - 5.1.6 250314
Fatal error: Class 'DateTime' not found in /in/EYZHI on line 5
Process exited with code 255 . Output for 5.1.0 Fatal error: fatal flex scanner internal error--end of buffer missed in /in/EYZHI on line 7
Process exited with code 255 . Output for 4.3.2 - 4.3.11 , 4.4.0 - 4.4.9 250314
Fatal error: Undefined class name 'datetime' in /in/EYZHI on line 5
Process exited with code 255 . Output for 4.3.0 - 4.3.1 250314
Fatal error: Undefined class name 'datetime' in /in/EYZHI on line 5
preferences:dark mode live preview
236.16 ms | 401 KiB | 316 Q