3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $_POST["login"]=urldecode('admin%0b'); $login=stripslashes($_POST["login"]); $login=trim($login,"\x0b"); if ($_POST["login"]!=="admin" && $login==="admin") { if( !($row = checkPass($login, $_POST["password"])) ) { $messages[]="Incorrect login/password, try again"; } if($messages){ printErrors(); exit; } cleanMemberSession($row["login"], $row["password"]); header("Location: /members.php"); } else if (mb_eregi("\w*(admin)\s*\w*",$_POST["login"])) { die("You are not an admin"); }
Output for 7.0.0 - 7.1.0
Fatal error: Uncaught Error: Call to undefined function checkPass() in /in/TRZDl:7 Stack trace: #0 {main} thrown in /in/TRZDl on line 7
Process exited with code 255.
Output for 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
Fatal error: Call to undefined function checkPass() in /in/TRZDl on line 7
Process exited with code 255.
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: checkpass() in /in/TRZDl on line 7
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: checkpass() in /in/TRZDl on line 7
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: checkpass() in /in/TRZDl on line 7