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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grade Calculation</title> </head> <body> <form method="post"> <table> <tr> <td>Age:</td> <td><input type="text" name="age" id="age" /></td> </tr> <tr> <td>Resting Heart Rate: </td> <td><input type="text" name="RHR" id="RHR" /></td> </tr> </table> </form> <?php $thr = 0; if (!empty($_POST["age"])){ $age = $_POST["age"]; $rhr = $_POST["rhr"]; $thr = (((220 - $age) - $rhr) * .6) + $rhr; echo "Your training heart rate will be: " + $thr; } ?> </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 http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Grade Calculation</title> </head> <body> <form method="post"> <table> <tr> <td>Age:</td> <td><input type="text" name="age" id="age" /></td> </tr> <tr> <td>Resting Heart Rate: </td> <td><input type="text" name="RHR" id="RHR" /></td> </tr> </table> </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:
71.7 ms | 402 KiB | 8 Q