3v4l.org

run code in 300+ PHP versions simultaneously
<html> <body> <?php if(isset($_POST['send'])){ if(empty($_POST['email']) || empty($_POST['subject']) || empty($_POST['text'])){ echo "all fields must be filled"; } else{ mail("yourmail@x.com", $_POST['subject'], $_POST['text']); echo "mail has been send"; } } ?><form method='post'><input type='text' name='email' placeholder='Email'><br> <input type='text' name='subject' placeholder='Subject'><br> <textarea rows="15" style="width:60%" name="text"> </textarea><br> <input type='submit' name='send' value='Send'></form> </body> </html>
Output for git.master, git.master_jit, rfc.property-hooks
<html> <body> <form method='post'><input type='text' name='email' placeholder='Email'><br> <input type='text' name='subject' placeholder='Subject'><br> <textarea rows="15" style="width:60%" name="text"> </textarea><br> <input type='submit' name='send' value='Send'></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:
42.99 ms | 401 KiB | 8 Q