3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $d1 = strtotime("00:08:27"); $d2 = strtotime("00:01:32"); $summ = $d1 + $d2; echo $d1 . "\n"; echo $d2 . "\n"; echo $summ - time(); echo gmdate("H:i:s", $summ - time()); //$date1 = new DateTime('00:08:27'); //$date2 = new DateTime('00:01:32'); //$diff = $date2->diff($date1); //print_r( $diff )
based on FSXDd
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.0 - 7.3.0rc3
1518304107 1518303692 151822630701:31:47