3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = 115932; $mins = $time % 3600; $secs = $mins % 60; $hours = ($time - $mins) / 3600; $mins = ($mins - $secs) / 60; echo $hours . ':' . (($mins < 10 ) ? '0' : '') . $mins . ':' . (($secs < 10 ) ? '0' : '') . $secs;
based on TLhXr
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
32:12:12