3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $dt = new DateTime('today', new DateTimeZone('America\Los_Angeles')); echo $dt->format('d.m.Y H:i:s');
based on G9B71
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (America\Los_Angeles) in /in/2kP9g:3 Stack trace: #0 /in/2kP9g(3): DateTimeZone->__construct('America\\Los_Ang...') #1 {main} thrown in /in/2kP9g on line 3
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (America\Los_Angeles)' in /in/2kP9g:3 Stack trace: #0 /in/2kP9g(3): DateTimeZone->__construct() #1 {main}
Process exited with code 255.
Output for 5.6.0 - 5.6.30
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (America\Los_Angeles)' in /in/2kP9g:3 Stack trace: #0 /in/2kP9g(3): DateTimeZone->__construct('America\\Los_Ang...') #1 {main} thrown in /in/2kP9g on line 3
Process exited with code 255.