3v4l.org

run code in 300+ PHP versions simultaneously
<?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 5.3.0 - 5.3.27, 5.4.0 - 5.4.20
Parse error: syntax error, unexpected '<' in /in/kJN2O on line 2
Process exited with code 255.

preferences:
173.58 ms | 1399 KiB | 56 Q