3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('MDT'))); echo $now->format("Ymd H:i:s");
based on ugbN6
Output for 7.0.0 - 7.2.6
Fatal error: Uncaught Exception: DateTimeZone::__construct(): Unknown or bad timezone (JulMonCEST) in /in/ispmF:2 Stack trace: #0 /in/ispmF(2): DateTimeZone->__construct('JulMonCEST') #1 {main} thrown in /in/ispmF on line 2
Process exited with code 255.
Output for hhvm-3.15.4
Fatal error: Uncaught exception 'Exception' with message 'DateTimeZone::__construct(): Unknown or bad timezone (JulMonCEST)' in /in/ispmF:2 Stack trace: #0 /in/ispmF(2): 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 (JulMonCEST)' in /in/ispmF:2 Stack trace: #0 /in/ispmF(2): DateTimeZone->__construct('JulMonCEST') #1 {main} thrown in /in/ispmF on line 2
Process exited with code 255.