3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php session_start(); ?> <!DOCTYPE html> <html> <head> <title>Turk4a</title> <style> .main{ width: 600px; height: 450px; margin: auto; } #ans{ padding: 20px; border: 1px solid red; border-radius: 10px; margin-top: 5px; font-size: 18px; } .quest{ font-size: 20px; margin-left: 20px; } #subm{ padding: 5px 25px; margin-top: 5px; margin-left: 0px; border-radius: 6px; border: 1px solid black; background-color: #fff; } </style> </head> <body> <?php if($_SESSION['qnum'] == 1){ qst = "Tohal kto?"; ans1 = "Gudok"; ans2 = "Sirena"; ans3 = "Svistok"; ans4 = "Manok"; } ?> <div class="main"> <div class="quest"><p>Tohal kto?</p></div> <div class="ans"> <form action="index.php" method="post"> <div id="ans"><input name="1" type="radio" value="1"> Gudok</div> <div id="ans"><input name="1" type="radio" value="2"> Sirena </div> <div id="ans"><input name="1" type="radio" value="3"> Svistok </div> <div id="ans"><input name="1" type="radio" value="3"> Manok </div> <input type="submit" value="GO!!" id="subm"> </form> </div> </div> </body> </html>
Output for 5.3.0 - 5.4.27
Parse error: syntax error, unexpected '=' in /in/BPjI9 on line 39
Process exited with code 255.