3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $time1 = strtotime('00:00:00'); $time2 = strtotime('00:00:07'); $diff = $time2 - $time1; var_dump($time1,$time2,$diff); $diff = date('H:i:s', $diff); echo $diff;
based on qPq2k
Output for 5.6.0 - 7.3.0alpha1
int(1479942000) int(1479942007) int(7) 01:00:07