3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="post" action="#"> Glasses of Milk: <input type="text" name="milk"/><br /> How many eggs: <input type="text" name="egg"/><br /> Spoons of sugar: <input type="text" name="sugar"/><br /> Cups of flour: <input type="text" name="flour"/><br /> <input type="submit" value="submit" name="sub" /> <br /><br /> </form> <?php function cake($milk, $egg, $sugar, $flour) { echo "In your cake you'll have: \n" . $milk . " glasses of milk, \n" . $egg . " eggs, \n". $sugar . "spoons of sugar\n " . $flour . " cups of" . " flour"; $t = $milk + $egg + $sugar + $flour; echo "\n\nPut 'em all in a bowl, mix it up, put it in the oven for ". $t . " minutes and put the oven o 180 degrees. Then put it in the fridge for ". $t*4 . " minutes. Then eat it!"; } if( isset($_POST['sub'])) { cake($_POST['milk'], $_POST['egg'], $_POST['sugar'], $_POST['flour']); } ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <head> <title>Online PHP Script Execution</title> </head> <body> <form method="post" action="#"> Glasses of Milk: <input type="text" name="milk"/><br /> How many eggs: <input type="text" name="egg"/><br /> Spoons of sugar: <input type="text" name="sugar"/><br /> Cups of flour: <input type="text" name="flour"/><br /> <input type="submit" value="submit" name="sub" /> <br /><br /> </form> </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:
39.55 ms | 402 KiB | 8 Q