3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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 7.0.0 - 7.2.0
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.
Output for 5.3.20 - 5.6.28
Fatal error: Call to undefined function mysqli_connect() in /in/jmJlF on line 4
Process exited with code 255.