3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $seconds = 247; $m = $seconds / 60 % 60; $newDate = strval($m); $formattedTime = date('h:i:s', $newDate); echo $m; echo " \n"; echo $formattedTime;
Output for 4.3.0 - 7.1.0
4 01:00:04