3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $startTime = new DateTime('Wed Jul 05 2017 15:43:15 GMT-0400 (-04)'); echo $startTime->format('Y-m-d H:i:s');
based on ucmCS
Output for 7.0.0 - 7.2.8
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (Wed Jul 05 2017 15:43:15 GMT-0400 (-04)) at position 34 ((): Unexpected character in /in/S4Chb:3 Stack trace: #0 /in/S4Chb(3): DateTime->__construct('Wed Jul 05 2017...') #1 {main} thrown in /in/S4Chb on line 3
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 (Wed Jul 05 2017 15:43:15 GMT-0400 (-04)) at position 34 ((): Unexpected character' in /in/S4Chb:3 Stack trace: #0 /in/S4Chb(3): 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 (Wed Jul 05 2017 15:43:15 GMT-0400 (-04)) at position 34 ((): Unexpected character' in /in/S4Chb:3 Stack trace: #0 /in/S4Chb(3): DateTime->__construct('Wed Jul 05 2017...') #1 {main} thrown in /in/S4Chb on line 3
Process exited with code 255.