3v4l.org

run code in 300+ PHP versions simultaneously
<?php $hostname = "google.com"; if(dns_get_mx($hostname, $mxhosts, $weights)) { foreach($mxhosts as $key => $host) { echo "Hostname: $host (Weight: {$weights[$key]}<BR/>\n"; } } else { echo "Could not find any MX records for $hostname\n"; } ?>

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.60.0180.00018.55
8.3.50.0060.01218.32
8.3.40.0060.01018.98
8.3.30.0090.00619.21
8.3.20.0050.00320.46
8.3.10.0080.00022.18
8.3.00.0030.00519.50
8.2.180.0090.00618.54
8.2.170.0070.00722.96
8.2.160.0070.00720.55
8.2.150.0000.00824.18
8.2.140.0030.00524.66
8.2.130.0030.00626.16
8.2.120.0090.00019.38
8.2.110.0000.00921.25
8.2.100.0090.00317.75
8.2.90.0000.00919.30
8.2.80.0000.00817.97
8.2.70.0000.00917.63
8.2.60.0050.00318.05
8.2.50.0080.00018.07
8.2.40.0040.00420.13
8.2.30.0040.00418.14
8.2.20.0040.00417.83
8.2.10.0030.00518.24
8.2.00.0040.00417.71
8.1.280.0040.01125.92
8.1.270.0030.00619.07
8.1.260.0090.00026.35
8.1.250.0070.00028.09
8.1.240.0090.00022.17
8.1.230.0120.00017.66
8.1.220.0040.00417.91
8.1.210.0050.00318.77
8.1.200.0050.00517.35
8.1.190.0030.00517.48
8.1.180.0040.00418.10
8.1.170.0040.00420.49
8.1.160.0030.00522.11
8.1.150.0000.00819.00
8.1.140.0030.00617.52
8.1.130.0030.00318.10
8.1.120.0040.00417.41
8.1.110.0030.00617.43
8.1.100.0050.00317.37
8.1.90.0030.00317.39
8.1.80.0050.00217.42
8.1.70.0070.00017.57
8.1.60.0060.00517.64
8.1.50.0040.00417.46
8.1.40.0050.00317.51
8.1.30.0080.00017.55
8.1.20.0050.00317.59
8.1.10.0040.00417.47
8.1.00.0060.00317.40
8.0.300.0000.00718.77
8.0.290.0040.00417.00
8.0.280.0000.00718.52
8.0.270.0000.00717.45
8.0.260.0030.00317.29
8.0.250.0030.00317.02
8.0.240.0000.00717.04
8.0.230.0070.00017.02
8.0.220.0000.00717.04
8.0.210.0050.00216.96
8.0.200.0090.00016.96
8.0.190.0000.00717.11
8.0.180.0000.00716.94
8.0.170.0050.00216.96
8.0.160.0080.00017.00
8.0.150.0000.00716.95
8.0.140.0040.00416.80
8.0.130.0090.00013.64
8.0.120.0050.00317.06
8.0.110.0040.00417.06
8.0.100.0000.00716.99
8.0.90.0000.00717.10
8.0.80.0120.01217.00
8.0.70.0040.00416.87
8.0.60.0070.00017.04
8.0.50.0000.00716.93
8.0.30.0110.01317.05
8.0.20.0090.01017.40
8.0.10.0060.00317.11
8.0.00.0100.01316.80
7.4.330.0050.00315.03
7.4.320.0000.00716.64
7.4.300.0030.00516.63
7.4.290.0060.00316.64
7.4.280.0030.00516.42
7.4.270.0040.00416.54
7.4.260.0000.00816.57
7.4.250.0070.00016.66
7.4.240.0040.00416.71
7.4.230.0040.00416.57
7.4.220.0070.01416.64
7.4.210.0090.00616.72
7.4.200.0000.00716.44
7.4.160.0090.00916.52
7.4.150.0090.00917.40
7.4.140.0130.00617.86
7.4.130.0070.01116.53
7.4.120.0100.00916.57
7.4.110.0130.01016.57
7.4.100.0150.00316.68
7.4.90.0100.00716.57
7.4.80.0080.01119.39
7.4.70.0060.01316.43
7.4.60.0200.00616.61
7.4.50.0000.00516.52
7.4.40.0100.00716.50
7.4.30.0160.00316.52
7.4.00.0040.01215.06
7.3.330.0020.00213.27
7.3.320.0120.00013.32
7.3.310.0070.00016.12
7.3.300.0030.00316.27
7.3.290.0090.00516.35
7.3.280.0060.01016.28
7.3.270.0130.00317.40
7.3.260.0110.00616.65
7.3.250.0080.00916.61
7.3.240.0100.00716.51
7.3.230.0130.00616.39
7.3.210.0200.00316.37
7.3.200.0120.00419.39
7.3.190.0100.00716.54
7.3.180.0060.00916.23
7.3.170.0090.00616.43
7.3.160.0080.00816.49
7.3.120.0080.00615.06
7.3.110.0030.01314.86
7.3.100.0020.01314.67
7.3.90.0020.01014.84
7.3.80.0060.00714.81
7.3.70.0050.00714.81
7.3.60.0060.00514.62
7.3.50.0060.01014.79
7.3.40.0100.00314.90
7.3.30.0030.01014.87
7.3.20.0070.00816.57
7.3.10.0080.00616.71
7.3.00.0040.00716.57
7.2.330.0110.00916.68
7.2.320.0060.01116.52
7.2.310.0060.01816.43
7.2.300.0100.00716.73
7.2.290.0110.01116.50
7.2.250.0100.00814.97
7.2.240.0050.01515.04
7.2.230.0070.00515.03
7.2.220.0060.00715.10
7.2.210.0090.00314.98
7.2.200.0060.00614.85
7.2.190.0030.01314.84
7.2.180.0050.01015.00
7.2.170.0030.01214.94
7.2.80.0000.01416.39
7.2.00.0030.01019.46
7.1.330.0060.00915.88
7.1.320.0030.01215.95
7.1.310.0090.00416.04
7.1.300.0070.00815.81
7.1.290.0030.00815.82
7.1.280.0030.00815.80
7.1.270.0090.00515.72
7.1.260.0060.00815.90
7.1.200.0070.00215.95
7.1.100.0140.00718.27
7.1.70.0120.00917.23
7.1.60.0070.01719.50
7.1.50.0040.01417.05
7.1.00.0030.07322.36
7.0.200.0710.00914.67
7.0.140.0070.07022.23
7.0.60.0100.05720.05
7.0.50.0100.06018.12
7.0.40.0130.07720.46
7.0.30.0230.06320.26
7.0.20.0230.06320.21
7.0.10.0330.05020.38
7.0.00.0070.08720.26
5.6.280.0000.07721.09
5.6.210.0070.03720.60
5.6.200.0170.07018.23
5.6.190.0000.04720.75
5.6.180.0330.07320.39
5.6.170.0370.07020.66
5.6.160.0030.04020.70
5.6.150.0100.08018.25
5.6.140.0030.08318.19
5.6.130.0000.06718.35
5.6.120.0100.05721.20
5.6.110.0100.08721.09
5.6.100.0130.07721.20
5.6.90.0070.06721.04
5.6.80.0000.05720.47
5.6.70.0230.03720.58
5.5.350.0270.07720.46
5.5.340.0030.05318.24
5.5.330.0130.07720.43
5.5.320.0030.09020.34
5.5.310.0230.07720.32
5.5.300.0070.03718.06
5.5.290.0100.05718.02
5.5.280.0030.04321.04
5.5.270.0030.04320.85
5.5.260.0070.06721.03
5.5.250.0100.07720.67
5.5.240.0030.04720.21
5.4.450.0470.06319.64
5.4.440.0730.07319.64
5.4.430.0830.06319.52
5.4.420.1000.08319.51
5.4.410.0200.07018.80
5.4.400.0970.04718.93
5.4.390.0970.04318.83
5.4.380.0830.06718.69
5.4.370.0930.05318.52
5.4.360.2630.05718.89
5.4.350.2300.08018.77
5.4.340.1270.06718.61
5.4.320.1130.07018.66
5.4.310.4770.07018.58
5.4.300.0800.07318.58
5.4.290.0170.06718.70
5.4.280.0070.08018.82
5.4.270.0630.06018.66
5.4.260.0970.07718.88
5.4.250.1130.06318.91
5.4.240.1230.04718.70
5.4.230.0800.05718.67
5.4.220.1000.06018.58
5.4.210.0900.05718.53
5.4.200.1070.05316.73
5.4.190.1030.05718.85
5.4.180.1030.06018.91
5.4.170.0900.06018.59
5.4.160.0900.06018.83
5.4.150.1170.04018.84
5.4.140.1130.05316.41
5.4.130.1030.04716.34
5.4.120.1170.05316.47
5.4.110.1170.04316.39
5.4.100.1070.05716.29
5.4.90.1270.04316.27
5.4.80.1200.06716.34
5.4.70.1230.08016.32
5.4.60.1000.06316.45
5.4.50.1330.06016.32
5.4.40.1270.06716.34
5.4.30.1370.06316.30
5.4.20.1200.05716.23
5.4.10.1170.06016.34
5.4.00.1030.05315.79
5.3.290.1200.06314.88
5.3.280.1200.05714.71
5.3.270.1100.07314.68
5.3.260.1100.07014.64
5.3.250.1170.07714.82
5.3.240.1270.06714.66
5.3.230.1370.06314.71
5.3.220.1330.06014.63
5.3.210.0970.05014.62
5.3.200.0870.05714.73
5.3.190.1170.06014.57
5.3.180.1470.05314.61
5.3.170.1400.07314.64
5.3.160.1400.07314.69
5.3.150.1500.07014.62
5.3.140.1100.08014.57
5.3.130.1600.07714.64
5.3.120.1470.08014.71
5.3.110.1470.07314.56
5.3.100.1470.06014.09
5.3.90.1230.07314.02
5.3.80.1400.06014.05
5.3.70.1330.07014.06
5.3.60.1200.05714.16
5.3.50.1230.05713.95
5.3.40.1570.05314.11
5.3.30.1030.05714.14
5.3.20.1230.05013.73
5.3.10.0870.05713.88
5.3.00.1170.05313.84
5.2.170.0800.04311.15
5.2.160.0870.04011.15
5.2.150.0830.04311.14
5.2.140.0830.04011.18
5.2.130.0870.03711.12
5.2.120.0730.05011.18
5.2.110.0770.04711.28
5.2.100.0930.04011.14
5.2.90.0730.04711.11
5.2.80.0800.05011.14
5.2.70.0730.04311.16
5.2.60.0530.04311.08
5.2.50.1030.05711.16
5.2.40.0370.04311.11
5.2.30.0600.05011.19
5.2.20.0700.03711.14
5.2.10.0830.04711.09
5.2.00.0570.04710.72
5.1.60.0570.03710.05
5.1.50.0570.03310.05
5.1.40.0530.03710.07
5.1.30.0630.04010.43
5.1.20.0730.04310.49
5.1.10.0600.03710.21
5.1.00.0830.04710.16
5.0.50.0570.0338.54
5.0.40.0530.0208.52
5.0.30.0330.0438.32
5.0.20.0300.0338.29
5.0.10.0300.0338.39
5.0.00.0400.0378.27
4.4.90.0330.0205.83
4.4.80.0270.0235.84
4.4.70.0300.0275.86
4.4.60.0300.0305.86
4.4.50.0370.0205.91
4.4.40.0300.0375.91
4.4.30.0400.0135.89
4.4.20.0230.0275.93
4.4.10.0270.0375.95
4.4.00.0370.0435.91
4.3.110.0270.0275.80
4.3.100.0330.0305.80
4.3.90.0530.0275.82
4.3.80.0270.0475.78
4.3.70.0270.0335.79
4.3.60.0400.0175.81
4.3.50.0270.0305.91
4.3.40.0130.0435.78
4.3.30.0130.0204.59
4.3.20.0200.0204.54
4.3.10.0170.0234.51
4.3.00.0100.0236.75

preferences:
53.66 ms | 400 KiB | 5 Q