3v4l.org

run code in 300+ PHP versions simultaneously
<?php?> <form name="input" action="index.php" method="get"> Type in a number:<input type="text" name="xnumber"> <input type="submit" value="Submit"> </form> <?php function calculate($x, $y) { $newnum = $x * $y; return $newnum; } $multiply = $_GET["xnumber"]; echo "The new number is " . calculate($num, $multiply); $num = calculate($num, $multiply); ?>
Output for git.master, git.master_jit, rfc.property-hooks
<?php?> <form name="input" action="index.php" method="get"> Type in a number:<input type="text" name="xnumber"> <input type="submit" value="Submit"> </form> Warning: Undefined array key "xnumber" in /in/ceIuo on line 14 Warning: Undefined variable $num in /in/ceIuo on line 15 The new number is 0 Warning: Undefined variable $num in /in/ceIuo on line 16

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