3v4l.org

run code in 300+ PHP versions simultaneously
<?php $file_name='pic1.jpg'; $to = ''; $subject = 'Приветствие'; $from = ''; $boundary = 'qwe'; $headers = 'From: '; $headers .= 'Content-type: multipart/mixed; boundary="'.$boundary.'"'; $headers .= 'Mime-Version: 1.0'; $headers .= 'Reply-To: '; $headers .= 'X-Mailer: php/' . phpversion(); $message = '\n--'.$boundary.'\n\n'; $message .= 'Content-type: text/html; charset=utf-8\n'; $message .= '\n <html> <head> <title>Приветствие</title> </head> <body> <div style="width: 100%"> <div style="width: 500px; height: 100%; border: 1px solid black; text-align: left; margin: 0 auto; position: relative; font-family: Times New Roman"> <div style="margin: 25px">Благодарю за подписку!</div> <div style="margin-top: 25px; margin-left: 25px"> <img alt="превью" src="cid:pic1" /> </div> <div style="margin: 25px; margin-top: 25px; text-align: right">С уважением,</div> </div> </div> </body> </html>\n\n '; $message.= '\n\n--'.$boundary.'\n'; $message.= 'Content-Type: image/jpeg; name="'.basename($file_name).'"\n'; $message.= 'Content-Transfer-Encoding: base64\n'; $message.= 'Content-ID: pic1\n\n'; $f=fopen($file_name,'rb'); $message.= base64_encode(fread($f,filesize($file_name))).'\n'; $message.= '--'.$boundary.'--\n\n'; 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)
8.2.110.0030.00720.52
8.2.100.0030.00718.67
8.2.90.0110.00018.94
8.2.80.0090.00318.56
8.2.70.0060.00618.72
8.2.60.0030.00918.76
8.2.50.0080.00418.84
8.2.40.0030.00618.91
8.2.30.0030.00719.02
8.2.20.0060.00318.88
8.2.10.0060.00318.91
8.2.00.0100.00018.91
8.1.240.0070.00318.50
8.1.230.0080.00418.60
8.1.220.0040.00818.62
8.1.210.0060.00620.01
8.1.200.0070.00318.68
8.1.190.0030.00718.42
8.1.180.0030.00718.47
8.1.170.0000.01018.43
8.1.160.0080.00418.48
8.1.150.0030.00918.67
8.1.140.0070.00418.42
8.1.130.0070.00318.61
8.1.120.0050.00518.63
8.1.110.0030.00618.50
8.1.100.0110.00018.55
8.1.90.0060.00318.54
8.1.80.0060.00318.45
8.1.70.0030.00618.43
8.1.60.0060.00318.71
8.1.50.0070.00318.50
8.1.40.0070.00318.66
8.1.30.0000.01218.78
8.1.20.0070.00318.77
8.1.10.0070.00418.62
8.1.00.0100.00018.86
8.0.300.0060.00318.06
8.0.290.0060.00318.15
8.0.280.0090.00018.06
8.0.270.0000.01018.07
8.0.260.0100.00017.90
8.0.250.0030.00618.18
8.0.240.0060.00318.20
8.0.230.0040.00717.94
8.0.220.0000.01017.98
8.0.210.0060.00318.21
8.0.200.0060.00318.14
8.0.190.0040.00417.98
8.0.180.0030.00618.14
8.0.170.0000.01218.21
8.0.160.0110.00018.14
8.0.150.0100.00018.18
8.0.140.0090.00317.73
8.0.130.0050.00518.07
8.0.120.0060.00618.07
8.0.110.0110.00018.13
8.0.100.0090.00018.06
8.0.90.0060.00317.86
8.0.80.0060.00318.13
8.0.70.0090.00018.08
8.0.60.0120.00017.93
8.0.50.0070.00417.99
8.0.30.0000.00917.93
8.0.20.0060.00318.19
8.0.10.0000.01018.19

preferences:
14.79 ms | 403 KiB | 5 Q