3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <h1> PENJUMLAHAN </h1> <form method="post"> Nilai 1 = <input type="text" name="a" value="<?php echo $_POST["a"] ?>" required><br> Nilai 2 = <input type="text" name="b" value="<?php echo $_POST["b"] ?>" required><br> <?php $a=$_POST["a"]; $b=$_POST["b"]; $penjumlahan = $a+$b; echo "Hasil = $penjumlahan"; ?> <br><input type="submit" value="hasil"> </form> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <body> <h1> PENJUMLAHAN </h1> <form method="post"> Nilai 1 = <input type="text" name="a" value=" Warning: Undefined array key "a" in /in/kLRTi on line 5 " required><br> Nilai 2 = <input type="text" name="b" value=" Warning: Undefined array key "b" in /in/kLRTi on line 6 " required><br> Warning: Undefined array key "a" in /in/kLRTi on line 8 Warning: Undefined array key "b" in /in/kLRTi on line 9 Hasil = 0<br><input type="submit" value="hasil"> </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:
60.26 ms | 402 KiB | 8 Q