3v4l.org

run code in 300+ PHP versions simultaneously
<html> <title>Status</title> <body> <form action="altaltstatus.php" method="post"> <input type="radio" name="status" value="Here"> Here<br> <input type="radio" name="status" value="Away"> Away<br> <input type="submit" name="submit" value="Update Status" /> </form> <?php if(isset($_POST['submit'])) { $status = $_POST['status']; if (in_array($status, ['Here','Away'])) { file_put_contents(__DIR__.'/status.txt',$status); } else { exit(1); } } ?> </body> </html>
Output for git.master_jit, git.master, rfc.property-hooks
<html> <title>Status</title> <body> <form action="altaltstatus.php" method="post"> <input type="radio" name="status" value="Here"> Here<br> <input type="radio" name="status" value="Away"> Away<br> <input type="submit" name="submit" value="Update Status" /> </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:
59.96 ms | 401 KiB | 8 Q