3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time = strtotime("07:17:46"); echo $time.'<br />'; $round = 15*60; $rounded = round($time / $round) * $round; echo date("H:i:s", $rounded);

preferences:
16.05 ms | 402 KiB | 5 Q