- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.27
- Parse error: syntax error, unexpected '=' in /in/ZbTcY on line 5
Process exited with code 255.
<?php
$date = "20140228115";
if (strlen($date) < 12) {
$date = = substr_replace($date, "0", strlen($date) - 2, 0);
}
var_dump(DateTime::createFromFormat("YmdGi", "20140228115"));
print_r(DateTime::getLastErrors());