3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> Name: <input type="text" name="fname"> <input type="submit"> </form> <?php if ($_SERVER["REQUEST_METHOD"] == "POST") { // collect value of input field $name = $_REQUEST['fname']; if (empty($name)) { echo "Name is empty"; } else { echo $name; } } ?> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <body> <form method="post" action="/in/oiFVo"> Name: <input type="text" name="fname"> <input type="submit"> </form> Warning: Undefined array key "REQUEST_METHOD" in /in/oiFVo on line 10 </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:
53.47 ms | 401 KiB | 8 Q