3v4l.org

run code in 200+ 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 - 7.2.0
32:12:12