3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = 'me@rishabhverma.me'; $subject = 'the subject'; $message = 'hello'; $headers = 'From: webmaster@example.com' . "\r\n" . 'Reply-To: webmaster@example.com' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); 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.1.100.0270.00718.14
7.1.70.0090.00017.07
7.1.60.0110.01519.46
7.1.50.0060.01616.88
7.1.00.0000.08022.33
7.0.200.0110.00016.73
7.0.140.0030.07321.99
7.0.60.0070.08720.01
7.0.50.0070.06017.81
7.0.40.0070.08720.12
7.0.30.0300.07720.34
7.0.20.0230.07720.19
7.0.10.0130.08020.17
7.0.00.0100.08020.16
5.6.280.0000.07720.77
5.6.210.0030.05320.76
5.6.200.0030.08718.16
5.6.190.0030.05020.33
5.6.180.0230.05020.32
5.6.170.0230.08320.47
5.6.160.0170.07720.40
5.6.150.0000.05318.18
5.6.140.0100.06018.20
5.6.130.0030.08318.18
5.6.120.0070.04320.98
5.6.110.0100.07020.95
5.6.100.0000.08721.10
5.6.90.0030.08721.09
5.6.80.0070.07320.36
5.6.70.4370.03320.36
5.5.350.0100.05720.38
5.5.340.0030.04317.91
5.5.330.0030.04720.43
5.5.320.0100.05020.22
5.5.310.0230.06020.33
5.5.300.0070.03717.93
5.5.290.0070.03717.96
5.5.280.0100.08720.84
5.5.270.0130.07320.76
5.5.260.0000.04320.88
5.5.250.0030.09020.57
5.5.240.0200.07720.26
5.4.450.0200.04019.24
5.4.440.0200.05019.40
5.4.430.0330.03719.46
5.4.420.0270.03319.41
5.4.410.0270.04019.44
5.4.400.0330.03018.93
5.4.390.0100.04318.77
5.4.380.0400.05718.79
5.4.370.0370.05318.70
5.4.360.0470.05318.76
5.4.350.0370.06018.70
5.4.340.0370.08018.80
5.4.320.0140.04312.50
5.4.310.0120.04112.50
5.4.300.0110.03712.50
5.4.290.0080.03912.50
5.4.280.0120.03712.39
5.4.270.0090.03812.39
5.4.260.0100.03912.39
5.4.250.0090.04212.39
5.4.240.0070.03512.39
5.4.230.0080.03612.38
5.4.220.0050.04012.39
5.4.210.0070.03412.39
5.4.200.0060.03712.39
5.4.190.0050.03612.38
5.4.180.0020.04112.38
5.4.170.0070.03612.39
5.4.160.0070.03512.39
5.4.150.0050.03812.39
5.4.140.0060.03812.07
5.4.130.0050.03812.06
5.4.120.0050.03612.02
5.4.110.0060.03712.01
5.4.100.0040.03712.01
5.4.90.0090.03812.01
5.4.80.0030.04112.01
5.4.70.0100.03112.01
5.4.60.0070.03412.01
5.4.50.0080.03412.01
5.4.40.0060.03511.99
5.4.30.0080.03311.99
5.4.20.0060.03511.99
5.4.10.0050.03511.99
5.4.00.0070.03511.48
5.3.290.0050.04112.80
5.3.280.0080.03612.71
5.3.270.0100.03512.72
5.3.260.0100.03512.72
5.3.250.0060.03812.71
5.3.240.0040.03912.72
5.3.230.0070.03812.71
5.3.220.0060.03912.68
5.3.210.0080.03712.68
5.3.200.0070.04012.68
5.3.190.0060.03712.68
5.3.180.0080.03412.67
5.3.170.0060.03612.67
5.3.160.0090.03312.68
5.3.150.0070.03712.68
5.3.140.0080.03512.66
5.3.130.0100.04512.65
5.3.120.0060.04012.66
5.3.110.0070.04112.66
5.3.100.0070.03612.11
5.3.90.0080.03912.08
5.3.80.0060.03712.08
5.3.70.0070.04212.08
5.3.60.0080.03512.06
5.3.50.0030.03912.00
5.3.40.0080.03512.00
5.3.30.0030.03811.96
5.3.20.0070.03511.74
5.3.10.0070.03411.71
5.3.00.0090.03311.70
5.2.170.0060.0299.20
5.2.160.0030.0309.20
5.2.150.0070.0299.20
5.2.140.0040.0329.19
5.2.130.0070.0279.15
5.2.120.0070.0289.15
5.2.110.0080.0269.16
5.2.100.0050.0299.16
5.2.90.0100.0289.16
5.2.80.0090.0289.16
5.2.70.0060.0309.15
5.2.60.0030.0329.11
5.2.50.0040.0319.08
5.2.40.0060.0279.05
5.2.30.0070.0289.03
5.2.20.0040.0299.02
5.2.10.0060.0268.92
5.2.00.0050.0298.78
5.1.60.0020.0268.06
5.1.50.0040.0258.06
5.1.40.0030.0268.04
5.1.30.0020.0288.39
5.1.20.0060.0258.42
5.1.10.0040.0268.14
5.1.00.0040.0268.14
5.0.50.0040.0216.62
5.0.40.0040.0196.48
5.0.30.0030.0336.29
5.0.20.0060.0176.26
5.0.10.0060.0186.23
5.0.00.0050.0306.23
4.4.90.0050.0144.78
4.4.80.0030.0164.75
4.4.70.0030.0154.75
4.4.60.0030.0154.76
4.4.50.0020.0164.77
4.4.40.0010.0284.71
4.4.30.0020.0164.76
4.4.20.0040.0144.84
4.4.10.0040.0154.84
4.4.00.0030.0254.76
4.3.110.0020.0164.67
4.3.100.0030.0154.66
4.3.90.0000.0184.64
4.3.80.0030.0254.59
4.3.70.0050.0134.63
4.3.60.0030.0154.63
4.3.50.0060.0134.63
4.3.40.0030.0244.54
4.3.30.0020.0163.28
4.3.20.0050.0143.25
4.3.10.0020.0163.22
4.3.00.0170.01318.56

preferences:
33.51 ms | 400 KiB | 5 Q