3v4l.org

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