3v4l.org

run code in 300+ PHP versions simultaneously
<?php //$date = new DateTime('2013-04-23 12:06:00.000'); $date = DateTime::createFromFormat('Y-m-d G:i:s.*', 2013-04-23 12:06:00.000); echo $date->format('c');
Output for 5.4.18 - 5.4.19
Parse error: syntax error, unexpected '12' (T_LNUMBER) in /in/FIr6h on line 4
Process exited with code 255.
Output for 5.4.0 - 5.4.17
Parse error: syntax error, unexpected '12' (T_LNUMBER) in /in/jF6GL on line 4
Process exited with code 255.
Output for 5.3.0 - 5.3.27
Parse error: syntax error, unexpected T_LNUMBER in /in/jF6GL on line 4
Process exited with code 255.

preferences:
178.06 ms | 1386 KiB | 55 Q