3v4l.org

run code in 300+ PHP versions simultaneously
<form title="Formulário Pontos" id="FormPontos" name="FormPontos" action="" method="post"> <select name="valor1"> <option value="2.5">2,5</option> <option value="3">3</option> </select> <select name="valor2"> <option value="2">2</option> <option value="3">3</option> </select> <input type="hidden" name="oculto" value="efetuar"/> <br /><br/> <input name="calcular" type="submit" value="Calcular"/> <input name="limpar" type="reset" value="Limpar" onclick="javascript:window.location.reload();"/> <br /><br /> </form> </body> <?php $total = ($_POST['valor1'] + $_POST['valor2']); echo "Valor Total da operação: ".$total; ?>
Output for git.master, git.master_jit, rfc.property-hooks
<form title="Formulário Pontos" id="FormPontos" name="FormPontos" action="" method="post"> <select name="valor1"> <option value="2.5">2,5</option> <option value="3">3</option> </select> <select name="valor2"> <option value="2">2</option> <option value="3">3</option> </select> <input type="hidden" name="oculto" value="efetuar"/> <br /><br/> <input name="calcular" type="submit" value="Calcular"/> <input name="limpar" type="reset" value="Limpar" onclick="javascript:window.location.reload();"/> <br /><br /> </form> </body> Warning: Undefined array key "valor1" in /in/mjpsR on line 20 Warning: Undefined array key "valor2" in /in/mjpsR on line 20 Valor Total da operação: 0

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