3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo date('T'); $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(CEST)); echo $now->format("Ymd H:i:s");
Output for 7.2.0 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
CEST Warning: Use of undefined constant CEST - assumed 'CEST' (this will throw an Error in a future version of PHP) in /in/O0iRv on line 3 20170703 12:10:26
Output for 5.6.0 - 5.6.10, 5.6.14 - 5.6.40, 7.0.0 - 7.0.33, 7.1.0 - 7.1.33
CEST Notice: Use of undefined constant CEST - assumed 'CEST' in /in/O0iRv on line 3 20170703 12:10:26
Output for 5.6.11 - 5.6.13
CEST Notice: Use of undefined constant CEST - assumed 'CEST' in /in/O0iRv on line 3 20170703 12:10:27

preferences:
139.63 ms | 401 KiB | 154 Q