3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php if ($_REQUEST[boton1] !=""){ $numero=$_POST; echo "Calcular factorial del numero $numero:<br><br>"; echo "<b>$numero!</b>="; $ac=1; $n=$numero; while($n>=2) { echo "$n"; echo "x"; $ac=$n*$ac; $n--; } if($n==1) { echo "$n"; $ac=$n*$ac; } echo "="; echo "<b>$ac</b>\n"; echo "<br></br>"; } else { ?> <H1>Ingrese el Numero a Calcular el Factorial</H1> <Hr> <FORM ACTION="main.php" METHOD="POST"> Numero: <INPUT TYPE="TEXT" NAME="number" size="10"> <Br> <INPUT TYPE="SUBMIT" NAME="boton1" VALUE="Ingresar"> </FORM> <?php } ?> <body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <body> Fatal error: Uncaught Error: Undefined constant "boton1" in /in/ZeLhZ:4 Stack trace: #0 {main} thrown in /in/ZeLhZ on line 4
Process exited with code 255.

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:
34.76 ms | 401 KiB | 8 Q