3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('MDT'))); echo $now->format("Ymd H:i:s");
Output for 7.0.0 - 7.0.33, 7.1.0 - 7.1.33, 7.2.0 - 7.2.26, 7.3.0 - 7.3.13, 7.4.0 - 7.4.1
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 5.6.0 - 5.6.40
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.

preferences:
120.85 ms | 401 KiB | 157 Q