3v4l.org

run code in 300+ PHP versions simultaneously
<!doctype html> <html> <head> <title>question2</title> <head> <body> if(isset($_POST['num1'])){ $num1 = $_POST['num1']; $num2 = $_POST['num2']; $result = $num1 + $num2; } ?> <form action="test.htm" method="post" name="myform" align="center"> Enter number 1:<input type="text" name="num1" /> <br> Enter number 2:<input type="text" name="num2" /> <br> <input type="submit" name="result" /> </form> <hr> <table border='1' align='center'> <td>number 1</td><td>calculate</td><td>number 2</td><td>result</td> <tr> <td> <? echo $num1; ?> </td> <td>+</td> <td> <? echo $num2; ?> </td> <td> <? echo $result; ?> </td> //</table> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<!doctype html> <html> <head> <title>question2</title> <head> <body> if(isset($_POST['num1'])){ $num1 = $_POST['num1']; $num2 = $_POST['num2']; $result = $num1 + $num2; } ?> <form action="test.htm" method="post" name="myform" align="center"> Enter number 1:<input type="text" name="num1" /> <br> Enter number 2:<input type="text" name="num2" /> <br> <input type="submit" name="result" /> </form> <hr> <table border='1' align='center'> <td>number 1</td><td>calculate</td><td>number 2</td><td>result</td> <tr> <td> <? echo $num1; ?> </td> <td>+</td> <td> <? echo $num2; ?> </td> <td> <? echo $result; ?> </td> //</table> </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:
57.67 ms | 402 KiB | 8 Q