3v4l.org

run code in 300+ PHP versions simultaneously
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="Website Homepage"> <meta name="author" content="Milos Djokic"> <link rel="stylesheet" href="css.css"> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("ajaxdiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","author.txt",true); xmlhttp.send(); } </script> </head> <body> <div id="ajaxdiv"> <h2>Let AJAX change this text</h2> </div> <button type="button" onclick="loadXMLDoc()">Show Author</button> <BR> <BR> Show Current Table - SELECT: <?php include 'select.php';?> <BR> <BR> INSERT: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> UPDATE AGE: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> DELETE USING FIRSTNAME AND LASTNAME: <form action="delete.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> <footer> <?php echo "<p>Copyright &copy; 1999-" . date("Y") . " Milos Djokic</p>"; ?> </footer> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <title>The HTML5 Herald</title> <meta name="description" content="Website Homepage"> <meta name="author" content="Milos Djokic"> <link rel="stylesheet" href="css.css"> <script> function loadXMLDoc() { var xmlhttp; if (window.XMLHttpRequest) {// code for IE7+, Firefox, Chrome, Opera, Safari xmlhttp=new XMLHttpRequest(); } else {// code for IE6, IE5 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP"); } xmlhttp.onreadystatechange=function() { if (xmlhttp.readyState==4 && xmlhttp.status==200) { document.getElementById("ajaxdiv").innerHTML=xmlhttp.responseText; } } xmlhttp.open("GET","author.txt",true); xmlhttp.send(); } </script> </head> <body> <div id="ajaxdiv"> <h2>Let AJAX change this text</h2> </div> <button type="button" onclick="loadXMLDoc()">Show Author</button> <BR> <BR> Show Current Table - SELECT: Warning: include(): open_basedir restriction in effect. File(select.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/EBtoU on line 49 Warning: include(select.php): Failed to open stream: Operation not permitted in /in/EBtoU on line 49 Warning: include(): Failed opening 'select.php' for inclusion (include_path='.:') in /in/EBtoU on line 49 <BR> <BR> INSERT: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> UPDATE AGE: <form action="insert.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> DELETE USING FIRSTNAME AND LASTNAME: <form action="delete.php" method="post"> Firstname: <input type="text" name="firstname"> Lastname: <input type="text" name="lastname"> Age: <input type="text" name="age"> <input type="submit"> </form> <BR> <BR> <footer> <p>Copyright &copy; 1999-2014 Milos Djokic</p></footer> </body> </html>

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:
37.97 ms | 409 KiB | 8 Q