3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php new DateTime('25/7/2017');
based on 394Qh
Output for 7.0.0 - 7.3.0beta1
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (25/7/2017) at position 0 (2): Unexpected character in /in/4hbMd:2 Stack trace: #0 /in/4hbMd(2): DateTime->__construct('25/7/2017') #1 {main} thrown in /in/4hbMd on line 2
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (25/7/2017) at position 0 (2): Unexpected character' in /in/4hbMd:2 Stack trace: #0 /in/4hbMd(2): DateTime->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (25/7/2017) at position 0 (2): Unexpected character' in /in/4hbMd:2 Stack trace: #0 /in/4hbMd(2): DateTime->__construct('25/7/2017') #1 {main} thrown in /in/4hbMd on line 2
Process exited with code 255.