3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(new DateTime('Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)'));
based on Yrs7Y
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTime::__construct(): Failed to parse time string (Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)) at position 41 (c): Double timezone specification in /in/H7gZf:3 Stack trace: #0 /in/H7gZf(3): DateTime->__construct('Mon Sep 28 1998...') #1 {main} thrown in /in/H7gZf on line 3
Process exited with code 255.
Output for 5.3.19 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTime::__construct(): Failed to parse time string (Mon Sep 28 1998 14:36:22 GMT-0700 (Pacific Daylight Time)) at position 41 (c): Double timezone specification' in /in/H7gZf:3 Stack trace: #0 /in/H7gZf(3): DateTime->__construct('Mon Sep 28 1998...') #1 {main} thrown in /in/H7gZf on line 3
Process exited with code 255.