3v4l.org

run code in 300+ PHP versions simultaneously
<html> <head> <title>A Times Table Programme</title> <?PHP $times = 2; if (isset($_POST['Submit1'])) { $start = $_POST['txtStart']; $end = $_POST['txtEnd']; $times = $_POST['txtTimes']; for($start; $start <= $end; $start++) { $answer = $start * $times; print $start . " multiplied by " . $times . " = " . $answer . "<BR>"; } } ?> </head> <body> <FORM NAME = frmOne Method = "POST" Action = "timesTable.php"> Start Number: <INPUT TYPE = Text NAME = txtStart SIZE = 5 value ="1"> End Number: <INPUT TYPE = Text NAME = txtEnd SIZE = 5 value ="10"> Multiply By: <INPUT TYPE = Text NAME = txtTimes SIZE = 5 value = <?PHP print $times; ?> > <P> <INPUT TYPE = Submit Name = Submit1 VALUE = "Do Times Table"> <P> </FORM> </body> <html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <head> <title>A Times Table Programme</title> </head> <body> <FORM NAME = frmOne Method = "POST" Action = "timesTable.php"> Start Number: <INPUT TYPE = Text NAME = txtStart SIZE = 5 value ="1"> End Number: <INPUT TYPE = Text NAME = txtEnd SIZE = 5 value ="10"> Multiply By: <INPUT TYPE = Text NAME = txtTimes SIZE = 5 value = 2 > <P> <INPUT TYPE = Submit Name = Submit1 VALUE = "Do Times Table"> <P> </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:
58.83 ms | 402 KiB | 8 Q