3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $morning = '14:05:12'; $evening = '17:05:29'; $sum = gmdate('H:i:s', (strtotime("01:05:12")-strtotime("00:00:00"))+(strtotime("14:05:29")-strtotime("00:00:00"))); echo $sum;
Output for 4.3.0 - 5.6.15, 5.6.17 - 7.1.0
15:10:41
Output for 5.6.16
14:10:41