3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = "0:00"; $end = "11:00"; $tStart = strtotime($start); $tEnd = strtotime($end); $tNow = $tStart; while($tNow <= $tEnd){ echo date("H:i",$tNow)."\n"; $tNow = strtotime('+30 minutes',$tNow); } ?>

preferences:
38.47 ms | 402 KiB | 5 Q