3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $seconds = 300; $hours = floor($seconds / 3600); $minutes = floor($seconds % 3600 / 60); $seconds = $seconds % 60; sprintf("%d:%02d:%02d", $hours, $minutes, $seconds);
based on YOphv
Output for 4.3.0 - 7.2.0