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>'; } elseif (isset($_GET['pass'])) { echo 'Invalid password'; } ?>
Output for 5.1.0 - 5.6.28, 7.0.0 - 7.1.0
Warning: require_once(config.php): failed to open stream: No such file or directory in /in/2tGbI on line 2 Fatal error: require_once(): Failed opening required 'config.php' (include_path='.:') in /in/2tGbI on line 2
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Fatal error: File not found: config.php in /in/2tGbI 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/2tGbI on line 2 Fatal error: main(): Failed opening required 'config.php' (include_path='.:') in /in/2tGbI 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/2tGbI on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'config.php' (include_path='.:') in /in/2tGbI on line 2