3v4l.org

run code in 300+ PHP versions simultaneously
<?php $con=mysqli_connect("localhost", "root", "Howismy1975", "testevent"); $companyname = isset($_POST["companyname"]) ? $_POST['companyname'] : 'companyname'; $contactname = isset($_POST["contactname"]) ? $_POST['contactname'] : 'contactname'; $conphonenumber = isset($_POST["conphonenumber"]) ? $_POST['conphonenumber'] : 'conphonenumber'; $conemail = isset($_POST["conemail"]) ? $_POST['conemail'] : 'conemail'; $conaddress = isset($_POST["conaddress"]) ? $_POST['conaddress'] : 'conaddress'; $conpostcode = isset($_POST["conpostcode"]) ? $_POST['conpostcode'] : 'conpostcode'; $statement = mysqli_prepare($con, "INSERT INTO client(companyname, contactname, conphonenumber, conemail, conaddress, conpostcode) VALUES (?, ?, ?, ?, ?, ?)"); mysqli_stmt_bind_param($statement, "ssssss", $companyname, $contactname, $conphonenumber, $conemail, $conaddress, $conpostcode); mysqli_stmt_execute($statement); mysqli_stmt_close($statement); 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/jmJlF:4 Stack trace: #0 {main} thrown in /in/jmJlF on line 4
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:
45.41 ms | 401 KiB | 8 Q