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(MDT)); echo $now->format("Ymd H:i:s");
based on ispmF
Output for 7.2.0 - 7.2.6
CEST Warning: Use of undefined constant MDT - assumed 'MDT' (this will throw an Error in a future version of PHP) in /in/v7MqU on line 3 20170703 04:10:12
Output for 5.6.0 - 5.6.30, 7.0.0 - 7.1.10
CEST Notice: Use of undefined constant MDT - assumed 'MDT' in /in/v7MqU on line 3 20170703 04:10:12
Output for hhvm-3.15.4
CEST Notice: Use of undefined constant MDT - assumed 'MDT' in /in/v7MqU on line 3 20170703 05:10:12