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'); ?>

preferences:
62.1 ms | 402 KiB | 5 Q