<select <?= vars('attributes') ?>>
<?php foreach (vars('timezones') as $continent => $entries): ?>
<optgroup label="<?= $continent ?>">
<?php foreach ($entries as $value => $name): ?>
<option value="<?= $value ?>"><?= $name ?></option>
<?php endforeach ?>
</optgroup>
</select>