3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $date = new DateTime(); $date = new DateTime('00:08:27'); $date->modify('+ 00:01:32'); echo $date->format('H:i:s'); $summ = strtotime("00:08:27") + strtotime("00:01:32"); echo $summ; echo "<br>"; echo gmdate("H:i:s", "3036607799"); echo "<br>"; echo gmdate("H:i:s", $summ);
based on It8BG
Output for 5.6.0 - 5.6.30, hhvm-3.18.5 - 3.21.3, 7.0.0 - 7.3.0rc3
Warning: DateTime::modify(): Failed to parse time string (+ 00:01:32) at position 0 (+): Unexpected character in /in/9MGIc on line 5 00:08:273036607799<br>22:09:59<br>22:09:59
Output for hhvm-3.22.0
Warning: DateTime::modify(): Failed to parse time string (+ 00:01:32) at position 0 (+): Unexpected character in /in/9MGIc on line -1 00:08:273036607799<br>22:09:59<br>22:09:59