3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = 935.2832234; $time = round($time, 2); var_dump($time); var_dump($time % 60); $timeOut = ''; if ($time > 60 * 60) { $timeOut .= gmdate('H', $time) . ' hours, '; } if ($time > 60) { $timeOut .= gmdate('i', $time) . ' min, '; } $timeOut .= number_format(($time % 60), 2) . ' sec'; echo ' (' . $timeOut . ' sec)' . "\n\n";

preferences:
40.79 ms | 402 KiB | 5 Q