3v4l.org

run code in 300+ PHP versions simultaneously
<?php include('../includes/config.php'); if(isset($_POST['login'])) { if(empty($_POST['username']) && empty($_POST['password'])) { echo 'Please fill all fields!'; } else { $salt = '$2a$06$t9/0hs.mlgssodGR7hLQPO'; $username = mysqli_real_escape_string($con, $_POST['username']); $password = crypt($_POST['password'], $salt); $sql = "SELECT * FROM admin WHERE username='$username' AND password='$password'"; $run_query = mysqli_query($con, $sql); $check_user = mysqli_num_rows($run_query); if(!$check_user) { echo 'Bad username or password!'; } else { header('Location: home/index.php'); } } } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: include(): open_basedir restriction in effect. File(../includes/config.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/r1RM3 on line 3 Warning: include(../includes/config.php): Failed to open stream: Operation not permitted in /in/r1RM3 on line 3 Warning: include(): Failed opening '../includes/config.php' for inclusion (include_path='.:') in /in/r1RM3 on line 3

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
40.03 ms | 406 KiB | 5 Q