3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost8080","a3876682_kami","Kawasakizx10r","a3876682_tonikam") or die(mysql_error()); $username = $_POST["username"]; $password = $_POST["password"]; $statement = mysqli_prepare($con, "SELECT * FROM User WHERE username = ? AND password = ?"); mysqli_stmt_bind_param($statement, "ss", $username, $password); mysqli_stmt_execute($statement); mysqli_stmt_store_result($statement); mysqli_stmt_bind_result($statement, $userID, $name, $age, $username, $password); //$user = array(); while($user=mysqli_stmt_fetch($statement)){ $user["name"] = $name; $user["age"] = $age; $user["username"] = $username; $user["password"] = $password; } echo json_encode($user); mysqli_close($con); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mysqli_connect() in /in/eeS45:2 Stack trace: #0 {main} thrown in /in/eeS45 on line 2
Process exited with code 255.

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:
42.57 ms | 401 KiB | 8 Q