3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = strtotime('00:00am'); $end = strtotime('23:00am'); $range = array(); while ($start !== $end) { $start = strtotime('+30 minutes',$start); $range[] = date('h:ia', $start); } print_r($range);

preferences:
66.17 ms | 402 KiB | 5 Q