3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php if($_POST){ $username=$_POST['username']; $password=$_POST['password']; $sql=_query("select * from users where username='$username' and password='$password'"); $res=_num_rows($sql); if($res>0){ $rs_login=_fetch_assoc($sql); $uid=$rs_login['user_id']; $_['sess_uid']=$uid; echo "success"; }else{ echo "invalid username or password"; } }
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0