3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once 'config.php'; $query = "SELECT * FROM new_members WHERE member_name='Admin' AND passwd='" . utf8_decode(mysql_real_escape_string(test)) . "' LIMIT 1"; $sql = mysql_query($query); $row = mysql_fetch_assoc($sql); if ($row) { echo '<h2>Welcome Admin</h2>'; } ?>
based on 2tGbI
Output for 5.1.0 - 7.1.0
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/fBoFh on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/fBoFh on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(config.php): failed to open stream: No such file or directory in /in/fBoFh on line 2 Fatal error: main(): Failed opening required 'config.php' (include_path='.:') in /in/fBoFh on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(config.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/fBoFh on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'config.php' (include_path='.:') in /in/fBoFh on line 2