3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php date_default_timezone_set('UTC'); $startTime = mktime(date("H"), date("i")-1, date("s"), date("m") , date("d"), date("Y")); $startTime = date('Y-m-d-H-i-s-000', $startTime); $finishTime = date('Y-m-d-H-i-s-000') ."\n"; echo $startTime; echo $finishTime;
based on Yj9mk
Output for 5.6.0 - 5.6.30, hhvm-3.21.3, 7.0.0 - 7.3.0beta1
2017-10-12-09-02-26-0002017-10-12-09-03-26-000
Output for hhvm-3.18.5, hhvm-3.22.0
2017-10-12-09-02-27-0002017-10-12-09-03-27-000