3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $x = new DateTime("27/08/13 11:13 AM"); $date_errors = DateTime::getLastErrors(); var_dump($x); var_dump($date_errors);
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (27/08/13 11:13 AM) at position 0 (2): Unexpected character in /in/jFniN:2 Stack trace: #0 /in/jFniN(2): DateTime->__construct('27/08/13 11:13 ...') #1 {main} thrown in /in/jFniN on line 2
Process exited with code 255.
Output for hhvm-3.12.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (27/08/13 11:13 AM) at position 0 (2): Unexpected character' in /in/jFniN:2 Stack trace: #0 /in/jFniN(2): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (27/08/13 11:13 AM) at position 0 (2): Unexpected character' in /in/jFniN:9 Stack trace: #0 /in/jFniN(9): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.3.28 - 5.3.29, 5.4.18 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (27/08/13 11:13 AM) at position 0 (2): Unexpected character' in /in/jFniN:2 Stack trace: #0 /in/jFniN(2): DateTime->__construct('27/08/13 11:13 ...') #1 {main} thrown in /in/jFniN on line 2
Process exited with code 255.
Output for 5.2.0 - 5.3.27, 5.4.0 - 5.4.17
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (27/08/13 11:13 AM) at position 0 (2): Unexpected character' in /in/b2odi:2 Stack trace: #0 /in/b2odi(2): DateTime->__construct('27/08/13 11:13 ...') #1 {main} thrown in /in/b2odi on line 2
Process exited with code 255.
Output for 5.0.0 - 5.1.6
Fatal error: Class 'DateTime' not found in /in/b2odi on line 2
Process exited with code 255.
Output for 4.3.2 - 4.4.9
Fatal error: Cannot instantiate non-existent class: datetime in /in/b2odi on line 2
Process exited with code 255.
Output for 4.3.1
Fatal error: Cannot instantiate non-existent class: datetime in /in/b2odi on line 2
Output for 4.3.0
Fatal error: Cannot instantiate non-existent class: datetime in /in/jFniN on line 2