3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?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); }
Output for 5.3.0 - 5.4.29
Parse error: syntax error, unexpected ';' in /in/LmfHj on line 9
Process exited with code 255.