3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = "eradarshjain@gmail.com"; $subject = "This is subject"; $message = "This is simple text message."; $header = "From:abc@papa.com \r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; } else { echo "Message could not be sent..."; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mail() in /in/aD5jH:7 Stack trace: #0 {main} thrown in /in/aD5jH on line 7
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:
48.12 ms | 401 KiB | 8 Q