3v4l.org

run code in 300+ PHP versions simultaneously
<?php $to      = "nobody@example.com"; $subject = "the subject"; $message = "hello"; $headers = "From: webmaster@example.com\r\nReply-To: webmaster@example.com\r\nX-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.4.00.0070.00714.61
7.3.120.0070.01114.82
7.3.110.0070.01014.81
7.3.100.0060.01014.75
7.3.90.0050.00814.56
7.3.80.0080.00414.70
7.3.70.0060.01014.70
7.3.60.0070.01014.81
7.3.50.0060.00914.60
7.3.40.0050.00714.71
7.3.30.0080.00514.62
7.3.20.0090.00716.50
7.3.10.0040.00716.75
7.3.00.0090.00616.58
7.2.250.0050.01214.77
7.2.240.0080.01215.15
7.2.230.0120.00614.83
7.2.220.0090.00614.89
7.2.210.0090.00514.79
7.2.200.0030.00815.02
7.2.190.0050.00714.91
7.2.180.0050.00614.90
7.2.170.0060.00914.91
7.2.00.0000.01619.40
7.1.330.0070.01015.75
7.1.320.0080.00915.79
7.1.310.0030.01015.77
7.1.300.0070.00515.58
7.1.290.0040.01115.60
7.1.280.0080.00715.58
7.1.270.0100.00215.62
7.1.260.0070.00515.79
7.1.100.0000.01218.12
7.1.70.0030.00517.03
7.1.60.0000.01117.16
7.1.50.0130.01016.83
7.1.00.0100.07022.45
7.0.200.0090.00616.88
7.0.140.0030.07322.21
7.0.110.0100.08019.86
7.0.100.0030.07019.96
7.0.90.0030.04319.91
7.0.80.0030.08720.09
7.0.70.0000.04320.03
7.0.60.0030.04019.93
7.0.50.0070.07019.90
7.0.40.0170.06019.74
7.0.30.0030.03719.74
7.0.20.0000.05719.74
7.0.10.0030.08319.78
7.0.00.0030.04319.81
5.6.280.0030.07720.92
5.6.260.0030.06720.64
5.6.250.0170.07320.67
5.6.240.0100.08020.71
5.6.230.0070.07020.70
5.6.220.0030.04320.66
5.6.210.0030.07320.80
5.6.200.0100.07020.55
5.6.190.0000.04320.65
5.6.180.0030.04020.54
5.6.170.0030.03720.62
5.6.160.0000.05020.62
5.6.150.0100.05020.63
5.6.140.0070.08320.64
5.6.130.0070.06320.62
5.6.120.0070.07320.60
5.6.110.0070.05020.54
5.6.100.0070.05320.65
5.6.90.0030.06020.55
5.6.80.0100.04020.08
5.6.70.0170.06319.97
5.6.60.0000.04319.82
5.6.50.0000.03319.94
5.6.40.0070.03320.01
5.6.30.0070.03019.82
5.6.20.0100.03719.90
5.6.10.0000.03320.20
5.6.00.0130.03319.99
5.5.380.0030.07317.54
5.5.370.0070.06317.55
5.5.360.0030.03717.54
5.5.350.0000.05717.48
5.5.340.0070.07318.12
5.5.330.0030.04717.84
5.5.320.0070.03017.98
5.5.310.0130.02717.84
5.5.300.0130.08017.89
5.5.290.0000.04718.11
5.5.280.0000.09017.98
5.5.270.0170.06717.86
5.5.260.0070.08018.21
5.5.250.0070.06317.91
5.5.240.0030.08017.48
5.5.230.0030.04017.63
5.5.220.0070.03717.50
5.5.210.0000.03717.48
5.5.200.0000.04017.36
5.5.190.0100.04017.52
5.5.180.0030.04017.60
5.5.160.0100.07017.47
5.5.150.0070.03017.47
5.5.140.0070.07017.23
5.5.130.0000.04717.48
5.5.120.0070.03717.45
5.5.110.0030.03717.33
5.5.100.0030.03717.41
5.5.90.0030.04317.09
5.5.80.0000.04317.40
5.5.70.0070.05317.43
5.5.60.0000.03317.34
5.5.50.0000.04017.11
5.5.40.0070.03717.26
5.5.30.0030.03717.33
5.5.20.0000.04017.28
5.5.10.0000.04017.49
5.5.00.0170.02317.34
5.4.450.0130.07019.60
5.4.440.0000.04019.59
5.4.430.0070.03319.40
5.4.420.0000.03719.44
5.4.410.0130.03319.18
5.4.400.0030.06318.93
5.4.390.0000.04718.93
5.4.380.0030.03719.02
5.4.370.0170.02718.93
5.4.360.0030.03719.20
5.4.350.0000.04018.95
5.4.340.0030.04018.95
5.4.320.0070.05318.95
5.4.310.0100.03318.98
5.4.300.0030.05719.17
5.4.290.0070.03718.98
5.4.280.0100.07719.27
5.4.270.0070.03719.07
5.4.260.0000.04319.07
5.4.250.0030.04019.09
5.4.240.0000.04319.26
5.4.230.0170.06319.02
5.4.220.0070.03719.07
5.4.210.0000.04319.02
5.4.200.0030.03719.00
5.4.190.0000.04719.16
5.4.180.0000.04318.94
5.4.170.0000.04018.99
5.4.160.0000.04319.09
5.4.150.0070.02718.98
5.4.140.0030.03716.22
5.4.130.0000.03316.16
5.4.120.0030.03716.41
5.4.110.0000.03716.54
5.4.100.0000.04016.29
5.4.90.0000.04316.36
5.4.80.0070.02316.48
5.4.70.0100.03016.27
5.4.60.0030.03316.26
5.4.50.0130.02316.25
5.4.40.0070.03016.43
5.4.30.0070.03016.37
5.4.20.0070.03716.10
5.4.10.0000.04016.16
5.4.00.0030.04015.66
5.3.290.0030.04314.60
5.3.280.0130.02314.59
5.3.270.0030.03714.40
5.3.260.0030.03714.66
5.3.250.0100.02714.70
5.3.240.0070.03014.54
5.3.230.0000.04014.69
5.3.220.0100.03314.41
5.3.210.0130.02714.41
5.3.200.0100.03314.34
5.3.190.0070.03714.63
5.3.180.0100.02314.53
5.3.170.0000.04014.50
5.3.160.0000.03314.41
5.3.150.0030.03714.39
5.3.140.0130.02714.42
5.3.130.0030.03714.64
5.3.120.0030.06714.37
5.3.110.0070.04014.48
5.3.100.0000.04313.82
5.3.90.0070.07014.08
5.3.80.0070.06713.88
5.3.70.0100.06013.85
5.3.60.0070.03313.89
5.3.50.0030.07013.83
5.3.40.0000.04013.87
5.3.30.0000.07313.84
5.3.20.0070.06713.75
5.3.10.0070.06313.60
5.3.00.0000.07013.42
5.2.170.0000.03312.06
5.2.160.0070.04012.06
5.2.150.0000.02712.06
5.2.140.0030.06312.06
5.2.130.0100.05712.06
5.2.120.0030.06712.06
5.2.110.0030.05312.06
5.2.100.0070.04712.06
5.2.90.0000.03012.06
5.2.80.0070.05712.06
5.2.70.0070.04712.06
5.2.60.0030.03312.06
5.2.50.0070.02312.06
5.2.40.0000.05012.06
5.2.30.0070.06012.06
5.2.20.0030.03712.06
5.2.10.0000.04712.06
5.2.00.0000.03012.06
5.1.60.0030.02312.06
5.1.50.0070.04712.06
5.1.40.0030.05312.06
5.1.30.0030.04012.06
5.1.20.0030.05712.06
5.1.10.0070.05312.06
5.1.00.0030.04012.06
5.0.50.0000.05012.06
5.0.40.0070.03312.06
5.0.30.0000.03312.06
5.0.20.0030.03712.06
5.0.10.0030.02712.06
5.0.00.0030.05012.06
4.4.90.0030.01012.06
4.4.80.0070.02012.06
4.4.70.0000.01712.06
4.4.60.0070.02712.06
4.4.50.0000.01712.06
4.4.40.0070.04712.06
4.4.30.0030.03312.06
4.4.20.0000.01312.06
4.4.10.0000.03012.06
4.4.00.0030.05012.06
4.3.110.0030.02712.06
4.3.100.0030.03012.06
4.3.90.0030.01712.06
4.3.80.0000.05012.06
4.3.70.0000.02312.06
4.3.60.0030.02012.06
4.3.50.0030.03312.06
4.3.40.0000.03712.06
4.3.30.0030.03312.06
4.3.20.0000.03312.06
4.3.10.0000.02012.06
4.3.00.0000.03712.06

preferences:
41.8 ms | 401 KiB | 5 Q