3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $seconds_input = (int) 243; $hours = floor($seconds_input / 3600); $minutes = floor(($seconds_input / 60) % 60); $seconds = $seconds_input % 60; printf("%02d:%02d:%02d", $hours, $minutes, $seconds);
Output for 4.3.0 - 7.1.0
00:04:03