3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> </head> <body> <form method ="POST" action ="tag.php"> Fruit name : <input type ="text" name="fruit"/> <br> Price/KG<input type="text" name="price"/> <br> <input type="submit" value="submit the price" name="submit1"/> </form> <?php $fru =$_POST['fruit']; $cost =$_POST['price']; echo "the fruit is $fru and its price is $cost"; ?> </body> </html>
Output for git.master_jit, git.master
<html> <head> </head> <body> <form method ="POST" action ="tag.php"> Fruit name : <input type ="text" name="fruit"/> <br> Price/KG<input type="text" name="price"/> <br> <input type="submit" value="submit the price" name="submit1"/> </form> Warning: Undefined array key "fruit" in /in/THSXb on line 18 Warning: Undefined array key "price" in /in/THSXb on line 20 the fruit is and its price is </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:
36.13 ms | 406 KiB | 5 Q