3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php // date time $dt = new DateTime(); $dt->setTime(1, 00, 00); $from = $dt->format('H:i:s'); $dt->modify('+ 1 hour'); $until = $dt->format('H:i:s'); var_dump($from, $until);
based on XH8vI
Output for 5.3.18 - 5.6.15, 5.6.17 - 7.2.0
string(8) "01:00:00" string(8) "02:00:00"
Output for 5.6.16
string(8) "01:00:00" string(8) "03:00:00"