3v4l.org

run code in 300+ PHP versions simultaneously
<?php $slot_count = 5; $start = strtotime("08:00"); echo date("H:i:s", $start).'<br/>'; for( $i=0; $i<$slot_count; $i++ ) { $start = $start; $end_new = date("H:i:s", strtotime('+20 minutes', $start)); $start = strtotime($end_new); echo $end_new.'<br/>'; }

preferences:
32.29 ms | 405 KiB | 5 Q