3v4l.org

run code in 300+ PHP versions simultaneously
<?php <?php // multiple recipients $to = 'dvsaikumar07@outlook.com' . ', '; // note the comma $to .= 'dvsaikumar07@outlook.com'; // subject $subject = 'Birthday Reminders for August'; // message $message = ' <html> <head> <title>Birthday Reminders for August</title> </head> <body> <p>Here are the birthdays upcoming in August!</p> <table> <tr> <th>Person</th><th>Day</th><th>Month</th><th>Year</th> </tr> <tr> <td>Joe</td><td>3rd</td><td>August</td><td>1970</td> </tr> <tr> <td>Sally</td><td>17th</td><td>August</td><td>1973</td> </tr> </table> </body> </html> '; // To send HTML mail, the Content-type header must be set $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; // Additional headers $headers .= 'To: Mary <dvsaikumar07@outlook.com>, Kelly <dvsaikumar07@outlook.com>' . "\r\n"; $headers .= 'From: Birthday Reminder <dvsaikumar07@outlook.com>' . "\r\n"; $headers .= 'Cc: dvsaikumar07@outlook.com' . "\r\n"; $headers .= 'Bcc: dvsaikumar07@outlook.com' . "\r\n"; // Mail it mail($to, $subject, $message, $headers); ?>

Here you find the average performance (time & memory) of each version. A grayed out version indicates it didn't complete successfully (based on exit-code).

VersionSystem time (s)User time (s)Memory (MiB)
7.0.20.0270.08020.23
7.0.10.0100.04720.25
7.0.00.0030.04020.06
5.6.170.0200.03720.55
5.6.160.0100.05720.54
5.6.150.0130.04318.15
5.6.140.0130.03018.18
5.6.130.0070.04318.28
5.6.120.0100.04020.98
5.6.110.0100.08321.09
5.6.100.0070.07720.95
5.6.90.0100.08020.97
5.6.80.0070.05720.28
5.5.310.0200.06020.35
5.5.300.0070.04717.95
5.5.290.0100.08018.07
5.5.280.0000.07020.96
5.5.270.0000.07320.86
5.5.260.0000.05720.76
5.5.250.0000.04720.57
5.5.240.0070.07720.25

preferences:
141.98 ms | 1394 KiB | 7 Q