3v4l.org

run code in 300+ PHP versions simultaneously
<?php if($_POST['formSubmit'] == "Submit") { $varMovie = $_POST['formMovie']; $varName = $_POST['formName']; } ?> <form action="myform.php" method="post"> Which is your favorite movie? <input type="text" name="formMovie" maxlength="50" value="<?=$varMovie;?>"> What is your name? <input type="text" name="formName" maxlength="50" value="<?=$varName;?>"> <input type="submit" name="formSubmit" value="Submit"> </form>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "formSubmit" in /in/l81LL on line 2 <form action="myform.php" method="post"> Which is your favorite movie? <input type="text" name="formMovie" maxlength="50" value=" Warning: Undefined variable $varMovie in /in/l81LL on line 10 "> What is your name? <input type="text" name="formName" maxlength="50" value=" Warning: Undefined variable $varName in /in/l81LL on line 13 "> <input type="submit" name="formSubmit" value="Submit"> </form>

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