3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to = "eradarshjain@gmail.com"; $subject = "This is subject"; $message = "This is simple text message."; $header = "From:abc@papa.com \r\n"; $retval = mail ($to,$subject,$message,$header); if( $retval == true ) { echo "Message sent successfully..."; } else { echo "Message could not be sent..."; } ?>

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.3.70.0120.00616.63
8.3.60.0040.01116.50
8.3.50.0090.00922.73
8.3.40.0070.01118.69
8.3.30.0100.00719.01
8.3.20.0040.00420.34
8.3.10.0040.00420.71
8.3.00.0000.00819.38
8.2.180.0100.00616.75
8.2.170.0070.01322.96
8.2.160.0100.00320.52
8.2.150.0040.00424.18
8.2.140.0050.00224.66
8.2.130.0080.00026.16
8.2.120.0070.00021.06
8.2.110.0030.00721.06
8.2.100.0080.00317.78
8.2.90.0050.00317.97
8.2.80.0060.00317.97
8.2.70.0030.00717.63
8.2.60.0060.00317.93
8.2.50.0000.00918.07
8.2.40.0030.00618.03
8.2.30.0070.00019.49
8.2.20.0050.00217.56
8.2.10.0040.00417.94
8.2.00.0050.00317.74
8.1.280.0160.01025.92
8.1.270.0080.00023.92
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.33
8.1.230.0080.00420.89
8.1.220.0060.00317.74
8.1.210.0050.00318.87
8.1.200.0080.00417.35
8.1.190.0040.00417.36
8.1.180.0040.00418.89
8.1.170.0030.00618.47
8.1.160.0000.00721.92
8.1.150.0000.00718.74
8.1.140.0000.00817.46
8.1.130.0040.00419.09
8.1.120.0030.00517.39
8.1.110.0000.00717.40
8.1.100.0000.00717.38
8.1.90.0030.00317.46
8.1.80.0000.00817.42
8.1.70.0030.00317.35
8.1.60.0040.00417.57
8.1.50.0060.00317.40
8.1.40.0040.00417.39
8.1.30.0040.00417.66
8.1.20.0070.00017.63
8.1.10.0000.00717.56
8.1.00.0040.00417.37
8.0.300.0050.00219.96
8.0.290.0040.00416.59
8.0.280.0030.00318.38
8.0.270.0030.00517.20
8.0.260.0030.00316.73
8.0.250.0030.00317.00
8.0.240.0030.00316.96
8.0.230.0070.00016.94
8.0.220.0050.00316.91
8.0.210.0000.00716.89
8.0.200.0030.00316.98
8.0.190.0060.00317.01
8.0.180.0040.00416.91
8.0.170.0000.00816.79
8.0.160.0030.00316.77
8.0.150.0020.00516.81
8.0.140.0000.00716.88
8.0.130.0030.00313.46
8.0.120.0030.00516.86
8.0.110.0030.00516.86
8.0.100.0070.00016.78
8.0.90.0000.00816.72
8.0.80.0100.01016.95
8.0.70.0050.00316.77
8.0.60.0030.00516.89
8.0.50.0000.00816.88
8.0.30.0080.01117.07
8.0.20.0120.00817.40
8.0.10.0000.01017.01
8.0.00.0070.01016.88
7.4.330.0050.00015.08
7.4.320.0000.00616.61
7.4.300.0030.00316.49
7.4.290.0040.00416.61
7.4.280.0070.00016.41
7.4.270.0070.00016.59
7.4.260.0040.00416.52
7.4.250.0000.00716.57
7.4.240.0020.00616.57
7.4.230.0070.00016.49
7.4.220.0040.01416.60
7.4.210.0070.01316.49
7.4.200.0070.00016.55
7.4.160.0100.00716.35
7.4.150.0070.01017.40
7.4.140.0110.01017.86
7.4.130.0100.00716.54
7.4.120.0100.00816.64
7.4.110.0060.00916.43
7.4.100.0070.01016.67
7.4.90.0150.00616.61
7.4.80.0070.01519.39
7.4.70.0200.00016.52
7.4.60.0030.01416.40
7.4.50.0080.00016.50
7.4.40.0100.00616.45
7.4.30.0090.00916.42
7.4.00.0060.00915.10
7.3.330.0000.00613.11
7.3.320.0050.00013.20
7.3.310.0000.00616.40
7.3.300.0000.00616.15
7.3.290.0130.00316.32
7.3.280.0050.01216.30
7.3.270.0100.01317.40
7.3.260.0140.00316.54
7.3.250.0060.01216.43
7.3.240.0070.01116.36
7.3.230.0080.00816.57
7.3.210.0110.01116.32
7.3.200.0000.01519.39
7.3.190.0070.01016.52
7.3.180.0100.00716.38
7.3.170.0060.01016.27
7.3.160.0050.01116.44
7.2.330.0030.01516.47
7.2.320.0130.01016.63
7.2.310.0120.00616.71
7.2.300.0070.01116.40
7.2.290.0090.00616.66
7.2.00.0030.00619.32
7.1.100.0000.01117.89
7.1.70.0030.00516.77
7.1.60.0150.00819.61
7.1.50.0070.01316.56
7.1.00.0030.09022.36
7.0.200.0030.00716.85
7.0.140.0000.07722.01
7.0.60.0070.08019.81
7.0.50.0070.05017.80
7.0.40.0170.06020.30
7.0.30.0200.08020.03
7.0.20.0270.04020.09
7.0.10.0130.08320.20
7.0.00.0130.04720.16
5.6.280.0000.07720.99
5.6.210.0000.08720.60
5.6.200.0170.07018.11
5.6.190.0070.07320.43
5.6.180.0400.06020.27
5.6.170.0400.06720.39
5.6.160.0030.08720.33
5.6.150.0030.06018.11
5.6.140.0000.06018.22
5.6.130.0170.07718.14
5.6.120.0170.04320.85
5.6.110.0100.08020.97
5.6.100.0070.08021.00
5.6.90.0130.05020.97
5.6.80.0130.07320.28
5.5.350.0300.07020.41
5.5.340.0170.06717.96
5.5.330.0070.06720.42
5.5.320.0400.05020.24
5.5.310.0330.07320.32
5.5.300.0030.06317.98
5.5.290.0070.05017.95
5.5.280.0030.04320.86
5.5.270.0100.08020.86
5.5.260.0000.07020.88
5.5.250.0170.06020.50
5.5.240.0170.07720.14
5.4.450.0700.03719.39
5.4.440.0270.05719.10
5.4.430.0270.06719.51
5.4.420.0130.05719.46
5.4.410.0270.04719.35
5.4.400.0330.04318.82
5.4.390.0130.05719.19
5.4.380.0200.05318.61
5.4.370.0200.05718.66
5.4.360.0170.05018.66
5.4.350.0400.04318.70
5.4.340.0400.06018.69
5.4.320.0090.04112.50
5.4.310.0070.04412.50
5.4.300.0090.03612.50
5.4.290.0050.04212.50
5.4.280.0080.03612.39
5.4.270.0070.04312.39
5.4.260.0080.03712.39
5.4.250.0070.04312.39
5.4.240.0060.05312.39
5.4.230.0120.03312.38
5.4.220.0050.03812.38
5.4.210.0080.03812.38
5.4.200.0040.04312.38
5.4.190.0080.03612.38
5.4.180.0090.04112.38
5.4.170.0110.03312.39
5.4.160.0040.04012.39
5.4.150.0080.03712.38
5.4.140.0110.03512.07
5.4.130.0110.03712.05
5.4.120.0120.05212.02
5.4.110.0120.03412.01
5.4.100.0050.03712.01
5.4.90.0090.04212.01
5.4.80.0060.03912.01
5.4.70.0060.03812.01
5.4.60.0080.03712.00
5.4.50.0070.04612.01
5.4.40.0120.03311.99
5.4.30.0110.04112.00
5.4.20.0090.04512.00
5.4.10.0100.04011.99
5.4.00.0050.04211.48
5.3.290.0120.04412.80
5.3.280.0110.04612.71
5.3.270.0070.04312.73
5.3.260.0090.03612.72
5.3.250.0080.03712.72
5.3.240.0070.04912.72
5.3.230.0090.04412.71
5.3.220.0100.04312.68
5.3.210.0100.04712.68
5.3.200.0050.03812.68
5.3.190.0060.03812.68
5.3.180.0060.03612.67
5.3.170.0060.04112.67
5.3.160.0090.04212.67
5.3.150.0080.04212.68
5.3.140.0080.04312.66
5.3.130.0060.04012.66
5.3.120.0080.03712.65
5.3.110.0090.04212.65
5.3.100.0090.04212.12
5.3.90.0070.03812.08
5.3.80.0080.03812.07
5.3.70.0080.03912.07
5.3.60.0060.03712.06
5.3.50.0060.03712.00
5.3.40.0080.03412.00
5.3.30.0060.03811.96
5.3.20.0040.03711.75
5.3.10.0020.04211.71
5.3.00.0070.03911.70
5.2.170.0050.0389.19
5.2.160.0090.0349.20
5.2.150.0080.0309.20
5.2.140.0090.0389.20
5.2.130.0060.0369.16
5.2.120.0070.0289.15
5.2.110.0080.0359.16
5.2.100.0060.0289.16
5.2.90.0120.0279.16
5.2.80.0040.0329.15
5.2.70.0050.0329.16
5.2.60.0080.0429.11
5.2.50.0080.0279.07
5.2.40.0070.0329.05
5.2.30.0080.0399.03
5.2.20.0060.0309.01
5.2.10.0050.0288.92
5.2.00.0060.0298.79
5.1.60.0020.0288.06
5.1.50.0030.0308.06
5.1.40.0020.0298.05
5.1.30.0080.0298.39
5.1.20.0060.0288.41
5.1.10.0030.0328.14
5.1.00.0050.0298.14
5.0.50.0050.0256.62
5.0.40.0060.0246.48
5.0.30.0040.0356.29
5.0.20.0040.0246.25
5.0.10.0030.0296.23
5.0.00.0070.0376.24
4.4.90.0040.0234.78
4.4.80.0040.0214.75
4.4.70.0080.0154.75
4.4.60.0050.0174.75
4.4.50.0050.0154.77
4.4.40.0010.0274.71
4.4.30.0030.0164.76
4.4.20.0060.0264.85
4.4.10.0070.0184.85
4.4.00.0050.0324.76
4.3.110.0060.0184.67
4.3.100.0050.0244.66
4.3.90.0050.0174.64
4.3.80.0090.0264.58
4.3.70.0040.0144.63
4.3.60.0050.0164.63
4.3.50.0030.0214.63
4.3.40.0070.0284.54
4.3.30.0060.0183.28
4.3.20.0070.0223.25
4.3.10.0030.0193.21
4.3.00.0070.01718.16

preferences:
30.89 ms | 401 KiB | 5 Q