3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(isset($_POST['TO'])&&!empty($_POST['TO'])&&isset($_POST['from'])&&!empty($_POST['from'])) { $to=$_POST['TO']; $subject=$_POST['subject']; $body=$_POST['body']; $from=$_POST['from']; if(mail($to,$subject,$body,$from)) { echo 'Message sent'; } else echo 'Error in sending'; } else echo 'Enter the required fields'; ?> <form action="main.php" method="POST"> TO :<input type="text" name="TO"><br><br> SUBJECT:<input type="text" name="subject"><br><br> Message:<textarea name="body" rows="6" cols="30"></textarea><br><br> From :<input type="text" name="from"><br><br> <input type="submit" value="submit"> </form>
Output for git.master, git.master_jit, rfc.property-hooks
Enter the required fields <form action="main.php" method="POST"> TO :<input type="text" name="TO"><br><br> SUBJECT:<input type="text" name="subject"><br><br> Message:<textarea name="body" rows="6" cols="30"></textarea><br><br> From :<input type="text" name="from"><br><br> <input type="submit" value="submit"> </form>

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