- Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.29
- Parse error: syntax error, unexpected ';' in /in/LmfHj on line 9
Process exited with code 255.
<?php
$date = array();
$date[] = '01/12/2014';
$date[] = '1/12/2014';
$date[] = '2014-12-1';
$date[] = '2014-12-01';
foreach ($date as $d) {
print_r(new DateTime($d);
}