3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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");
based on v7MqU
Output for 7.2.0 - 7.2.6
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.30, 7.0.0 - 7.1.10
CEST Notice: Use of undefined constant CEST - assumed 'CEST' in /in/O0iRv on line 3 20170703 12:10:26
Output for hhvm-3.15.4
CEST Notice: Use of undefined constant CEST - assumed 'CEST' in /in/O0iRv on line 3 20170703 13:10:26