3v4l.org

run code in 300+ PHP versions simultaneously
<?php $var = 'PHP Tutorial'; ?> <!DOCTYPE html> <html> <head> <title><?php echo $var; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method= 'POST'> <h2>Please input your name: </h2> <input type='text' name='name'> <input type='submit' value = "Submit Name"> </form> <?php $name = $_POST['name']; echo "<h3> Hello $name </h3>"; ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html> <html> <head> <title>PHP Tutorial</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> </head> <body> <form method= 'POST'> <h2>Please input your name: </h2> <input type='text' name='name'> <input type='submit' value = "Submit Name"> </form> Warning: Undefined array key "name" in /in/EI2q4 on line 16 <h3> Hello </h3> </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:
41.95 ms | 402 KiB | 8 Q