3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<select class="input-text validate-custom chzn-select" name="<?php //echo $this->getFieldName('month') ?>" id="<?php //echo $this->getFieldId('month') ?>"> <option value="0">Month</option> <?php for ($month = 1; $month <= 12; $month++) : ?> <option value="<?php echo date('m', mktime(0, 0, 0, $month)) ?>"><?php echo date('F', mktime(0, 0, 0, $month)) ?></option> <?php endfor; ?> </select>
Output for 4.3.0 - 7.1.0
<select class="input-text validate-custom chzn-select" name="" id=""> <option value="0">Month</option> <option value="01">January</option> <option value="03">March</option> <option value="03">March</option> <option value="05">May</option> <option value="05">May</option> <option value="07">July</option> <option value="07">July</option> <option value="08">August</option> <option value="10">October</option> <option value="10">October</option> <option value="12">December</option> <option value="12">December</option> </select>