3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $user="teamhijack"; $password="@#@#Password@#@#"; if(isset($_POST['submit'])){ if($_POST['user'] = $user){ if($_POST['password'] = $password){ echo "successful login!"; } else { echo "Bad Login."; } } else { echo "Bad Login."; } } ?> <html> <input type="text" name = "user" value = "username" /> <br> <input type="password" name = "password" value = "password" /> <br> <input type="submit" name = "submit" value = "login"/ > </html>
Output for 4.3.0 - 7.1.0
<html> <input type="text" name = "user" value = "username" /> <br> <input type="password" name = "password" value = "password" /> <br> <input type="submit" name = "submit" value = "login"/ > </html>