3v4l.org

run code in 300+ PHP versions simultaneously
<?php$con = mysqli_connect("localhost","root","",'oefening'); if (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);?>
Output for git.master, git.master_jit, rfc.property-hooks
<?php$con = mysqli_connect("localhost","root","",'oefening'); if (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);?>

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:
34.25 ms | 402 KiB | 8 Q