3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = DateTime::createFromFormat('U.u', number_format(microtime(true), 6, '.', ''))->setTimezone(new \DateTimeZone(date('T'))); echo $now->format("Ymd H:i:s");
Output for 5.6.0 - 5.6.40, 7.0.0 - 7.0.30, 7.0.32 - 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
20170703 12:07:07
Output for 7.0.31
20170703 12:07:08

preferences:
152.66 ms | 401 KiB | 157 Q