3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php <html> <head> <title>SO - Cart</title> </head> <body> <form action="" method="get" name="months"> <select id="selectId" onchange="this.form.submit()" name="month" > for($i=0;$i<=12;$i++){ if($i==$_REQUEST['month']) { echo '<option selected="selected" value="'.$i.'">'.$i.'</option>'; } else{ echo '<option value="'.$i.'">'.$i.'</option>'; } } </select><br><br> <input type="submit" value="Submit"> </form> $mul = 0; $rs='5000'; $mul=$_GET['month']; $multiply= $rs*$mul; echo "Rs ".$multiply; </body> </html> ?>
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.3.0 - 5.4.20
Parse error: syntax error, unexpected '<' in /in/kJN2O on line 2
Process exited with code 255.