3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $start = new \DateTime('2003-01-2800:00:00'); echo $start->format('Y-m-d).PHP_EOL; $start = new \DateTime('2003-01-28 00:00:00'); var_dump($start); $start = new \DateTime('2003-01-28'); var_dump($start);
Output for 5.4.18 - 5.4.19
Parse error: syntax error, unexpected '2003' (T_LNUMBER) in /in/SnY78 on line 5
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '2003' (T_LNUMBER) in /in/FiAHb on line 5
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER in /in/FiAHb on line 5
Process exited with code 255.