3v4l.org

run code in 300+ PHP versions simultaneously
<?php $confirmation_message = null; if($_POST['action']="process_email") { $email = $_POST['email']; $comment = $_POST['comment']; $confirmation_message = "Thank you for your submission"; $message = "Somebody with the email ".$email." submitted their email to you."; mail('jenny1truong@gmail.com', 'Web page submission', $message, 'From:obama@whitehouse.gov'); } else{ $confirmation_message = "Erm..."; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined array key "email" in /in/O9Y5H on line 6 Warning: Undefined array key "comment" in /in/O9Y5H on line 7 Fatal error: Uncaught Error: Call to undefined function mail() in /in/O9Y5H:11 Stack trace: #0 {main} thrown in /in/O9Y5H on line 11
Process exited with code 255.

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:
52.98 ms | 401 KiB | 8 Q