3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $time = 935.2832234; $time = round($time, 2); echo $time; $timeOut = ''; if ($time > 60 * 60) { $timeOut .= gmdate('H', $time) . 'hours, '; } if ($time > 60) { $timeOut .= gmdate('i', $time) . 'min, '; } $timeOut .= number_format($time % 60, 2); echo ' (' . $timeOut . number_format($time, 2) . ' sec)' . "\n\n";
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
935.28 (15min, 35.00935.28 sec)