3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $num=5; $timeUnit="01:02"; $current=strtotime($timeUnit); //seconds of current time $add=$num*60; // convert the $num into seconds echo date("H:i",$current+$add);
based on rIEv2
Output for 4.3.0 - 7.2.0
01:07