3v4l.org

run code in 300+ PHP versions simultaneously
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> <?php if(isset($_GET['submit'])) { $wholenumber = 5; $exponent = 5; $total=0; for ($i=0; $i < $exponent; $i++) { $total = $wholenumber * $wholenumber; } echo "Answer is: ".$total."<br/>"; } ?> </head> <body> <h1>Loops Construct</h1> <form method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>"> <p>Whole Number: <input type="text" name="whole" size="25"></p> <p>Exponent <input type="text" name="exponent" placeholder="example@hotmail.com" size="30"></p> <p><input type="submit" name="submit" value="Compute"></p> </form> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta content="text/html; charset=utf-8" http-equiv="Content-Type" /> <title>Untitled 1</title> </head> <body> <h1>Loops Construct</h1> <form method="get" action="/in/HLFjG"> <p>Whole Number: <input type="text" name="whole" size="25"></p> <p>Exponent <input type="text" name="exponent" placeholder="example@hotmail.com" size="30"></p> <p><input type="submit" name="submit" value="Compute"></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:
38.68 ms | 402 KiB | 8 Q