3v4l.org

run code in 300+ PHP versions simultaneously
<?php $output = []; for ($day = 0; $day < 21; $day++) { $output[] = strtotime(sprintf('+%d days', $day)); } echo "<select name='days'>"; foreach ($output as $day) { echo "<option value='".$day."'>".date('l jS \of F Y', $day)."</option>"; } echo "</select>";

preferences:
61.17 ms | 406 KiB | 5 Q