3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<html> <head><title>HBD for You</title></head> <body> <p>Enter Your Birthday</p> <form action = "dataEntry.php" method = "post"> <table cellspacing = "5"> <tr><td valign = "middle" colspan =2>Day <!--dropdown for day--> <select name = day> <option selected = "selected" value=""> Select</option> <?php for($day = 1;$day<=31; ++$day){ print "\t<option value=\"$day\">$day</option>\n"; } ?> </select> </td></tr> <tr><td valign = "middle" colspan =2>Month <!--dropdown for Month--> <select name = Month> <option selected = "selected" value=""> Select</option> <?php $array = array("Januray","February","March","April","May","June","July","August","September","October","November","December"); foreach($array as $Month){ print "\t<option value=\"$Month\">$Month</option>\n"; } ?> </select> </td></tr> <tr><td valign = "middle" colspan =2>Year <!--dropdown for Year--> <select name = year> <option selected = "selected" value=""> Select</option> <?php for($year = 1990;$year<=2015; ++$year){ print "\t<option value=\"$year\">$year</option>\n"; } ?> </select> </td></tr> </table> </form></body></html>
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
<html> <head><title>HBD for You</title></head> <body> <p>Enter Your Birthday</p> <form action = "dataEntry.php" method = "post"> <table cellspacing = "5"> <tr><td valign = "middle" colspan =2>Day <!--dropdown for day--> <select name = day> <option selected = "selected" value=""> Select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> <option value="5">5</option> <option value="6">6</option> <option value="7">7</option> <option value="8">8</option> <option value="9">9</option> <option value="10">10</option> <option value="11">11</option> <option value="12">12</option> <option value="13">13</option> <option value="14">14</option> <option value="15">15</option> <option value="16">16</option> <option value="17">17</option> <option value="18">18</option> <option value="19">19</option> <option value="20">20</option> <option value="21">21</option> <option value="22">22</option> <option value="23">23</option> <option value="24">24</option> <option value="25">25</option> <option value="26">26</option> <option value="27">27</option> <option value="28">28</option> <option value="29">29</option> <option value="30">30</option> <option value="31">31</option> </select> </td></tr> <tr><td valign = "middle" colspan =2>Month <!--dropdown for Month--> <select name = Month> <option selected = "selected" value=""> Select</option> <option value="Januray">Januray</option> <option value="February">February</option> <option value="March">March</option> <option value="April">April</option> <option value="May">May</option> <option value="June">June</option> <option value="July">July</option> <option value="August">August</option> <option value="September">September</option> <option value="October">October</option> <option value="November">November</option> <option value="December">December</option> </select> </td></tr> <tr><td valign = "middle" colspan =2>Year <!--dropdown for Year--> <select name = year> <option selected = "selected" value=""> Select</option> <option value="1990">1990</option> <option value="1991">1991</option> <option value="1992">1992</option> <option value="1993">1993</option> <option value="1994">1994</option> <option value="1995">1995</option> <option value="1996">1996</option> <option value="1997">1997</option> <option value="1998">1998</option> <option value="1999">1999</option> <option value="2000">2000</option> <option value="2001">2001</option> <option value="2002">2002</option> <option value="2003">2003</option> <option value="2004">2004</option> <option value="2005">2005</option> <option value="2006">2006</option> <option value="2007">2007</option> <option value="2008">2008</option> <option value="2009">2009</option> <option value="2010">2010</option> <option value="2011">2011</option> <option value="2012">2012</option> <option value="2013">2013</option> <option value="2014">2014</option> <option value="2015">2015</option> </select> </td></tr> </table> </form></body></html>