3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = 'sainikhil013@outlook.com'; $subject = 'PHP test'; $body = '<h1>Hello Amar'; $headers = 'From: Test Amar'."\r\n"; $headers .= 'Reply-To: sainikhil013@outlook.com'."\r\n"; $headers .= 'Return-Path: from@email.me'."\r\n"; $headers .= 'X-Mailer: PHP5'."\n"; $headers .= 'MIME-Version: 1.0'."\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'."\r\n"; mail($to, $subject, $body, $headers); ?>

preferences:
24.36 ms | 404 KiB | 5 Q