3v4l.org

run code in 300+ PHP versions simultaneously
<?php$con = mysqli_connect("localhost","root","",'oefening');// Check connectionif (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); exit();if(mysqli_query($con,"INSERT INTO persons (voornaam , achternaam , leeftijd) VALUES ('Peter', 'Griffin','35')")){ echo "De query is gelukt!"; } else { echo "Please check your query and try again. The error is:" .mysqli_error($con); }mysqli_close($con);?><?php

This is an error 404

There are `0` results


preferences:
150.19 ms | 1399 KiB | 7 Q