3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $username = '"; SELECT * FROM users; --'; $username = mysql_escape_string($username); $password = mysql_escape_string($password); $sql = "SELECT COUNT(*) FROM users WHERE username='$username' and password='$password'"; echo $sql;
based on S11Dc
Output for 7.0.0 - 7.3.1
Fatal error: Uncaught Error: Call to undefined function mysql_escape_string() in /in/9041p:3 Stack trace: #0 {main} thrown in /in/9041p on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.28
Fatal error: Call to undefined function mysql_escape_string() in /in/9041p on line 3
Process exited with code 255.