3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php \DateTime::createFromFormat(\DateTime::ISO8601, '2016-01-26T19:00:00.000', new DateTimeZone('Europe\Amsterdam')); var_dump(\DateTime::getLastErrors());
based on XpGUj
Output for 7.0.0 - 7.2.0
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Europe\Amsterdam) in /in/iRACS:3 Stack trace: #0 /in/iRACS(3): DateTimeZone->__construct('Europe\\Amsterda...') #1 {main} thrown in /in/iRACS on line 3
Process exited with code 255.
Output for 5.4.29 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Amsterdam)' in /in/iRACS:3 Stack trace: #0 /in/iRACS(3): DateTimeZone->__construct('Europe\\Amsterda...') #1 {main} thrown in /in/iRACS on line 3
Process exited with code 255.
Output for 5.4.27 - 5.4.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Amsterdam)' in /in/iRACS:3 Stack trace: #0 /in/iRACS(3): DateTimeZone->__construct('Europe\\Amsterdda..') #1 {main} thrown in /in/iRACS on line 3
Process exited with code 255.
Output for 5.3.22 - 5.4.26
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Europe\Amsterdam)' in /in/iRACS:3 Stack trace: #0 /in/iRACS(3): DateTimeZone->__construct('Europe\Amsterda...') #1 {main} thrown in /in/iRACS on line 3
Process exited with code 255.