3v4l.org

run code in 300+ PHP versions simultaneously
<?php function sendMail($from, $to, $body, $subject){ $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: '.$from."\r\n"; // corpo della mail mail($to, $subject, $body, $headers); } sendMail('ajeje@gmail.com', 'adus@log607.com', 'ciao', 'ciao'); ?>
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Call to undefined function mail() in /in/rhHf6:9 Stack trace: #0 /in/rhHf6(12): sendMail('ajeje@gmail.com', 'adus@log607.com', 'ciao', 'ciao') #1 {main} thrown in /in/rhHf6 on line 9
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:
44.24 ms | 401 KiB | 8 Q