3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo date('d/m/Y', strtotime('-3 week')); $date = new Datetime('23/07/2013');
Output for 7.0.0 - 7.1.0
02/09/2013 Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (23/07/2013) at position 0 (2): Unexpected character in /in/CscQo:4 Stack trace: #0 /in/CscQo(4): DateTime->__construct('23/07/2013') #1 {main} thrown in /in/CscQo on line 4
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
02/09/2013 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (23/07/2013) at position 0 (2): Unexpected character' in /in/CscQo:4 Stack trace: #0 /in/CscQo(4): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.2.0 - 5.6.28
02/09/2013 Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (23/07/2013) at position 0 (2): Unexpected character' in /in/CscQo:4 Stack trace: #0 /in/CscQo(4): DateTime->__construct('23/07/2013') #1 {main} thrown in /in/CscQo on line 4
Process exited with code 255.
Output for 5.0.0 - 5.1.6
02/09/2013 Fatal error: Class 'Datetime' not found in /in/CscQo on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.9
02/09/2013 Fatal error: Cannot instantiate non-existent class: datetime in /in/CscQo on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
02/09/2013 Fatal error: Cannot instantiate non-existent class: datetime in /in/CscQo on line 4