3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $liste = array("Casablanca","Fes","Kenitra","Rabat"); $max=sizeof($liste); for($i=0;$i<$max;$i++){ echo"<option value='$i'>$liste[$i]</option>"; } echo"</select>"; echo"</form>";
Output for 4.3.0 - 7.1.0
<option value='0'>Casablanca</option><option value='1'>Fes</option><option value='2'>Kenitra</option><option value='3'>Rabat</option></select></form>