3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $zone = new \DateTimeZone('Etc/GMT+02'); var_dump($zone->getLocation());
based on SNBEX
Output for 7.0.0 - 7.3.0rc4
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (Etc/GMT+02) in /in/sFfT2:3 Stack trace: #0 /in/sFfT2(3): DateTimeZone->__construct('Etc/GMT+02') #1 {main} thrown in /in/sFfT2 on line 3
Process exited with code 255.
Output for 5.3.20 - 5.6.28
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (Etc/GMT+02)' in /in/sFfT2:3 Stack trace: #0 /in/sFfT2(3): DateTimeZone->__construct('Etc/GMT+02') #1 {main} thrown in /in/sFfT2 on line 3
Process exited with code 255.