3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $seconds_input = (int) 23456; $hours = floor($seconds_input / 3600); $minutes = floor(($seconds_input / 60) % 60); $seconds = $seconds_input % 60; printf("%02d:%02d:%02d", $hours, $minutes, $seconds); echo "\n"; echo gmdate('H:i:s', $seconds_input);
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
06:30:56 06:30:56