3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = "http://username:password@url.com"; $xml = file_get_contents($url); $data = new SimpleXMLElement($xml); ?>

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.0100.01316.88
8.3.60.0070.00718.81
8.3.50.0130.00521.14
8.3.40.0120.00319.13
8.3.30.0150.00019.42
8.3.20.0040.00420.54
8.3.10.0050.00322.34
8.3.00.0050.00322.82
8.2.180.0070.01517.25
8.2.170.0090.01222.96
8.2.160.0110.00319.39
8.2.150.0110.00424.18
8.2.140.0110.00824.66
8.2.130.0110.00326.16
8.2.120.0080.00019.77
8.2.110.0030.00620.56
8.2.100.0070.00419.52
8.2.90.0040.00419.22
8.2.80.0050.00318.05
8.2.70.0060.00317.75
8.2.60.0040.00418.05
8.2.50.0020.00718.07
8.2.40.0060.00318.47
8.2.30.0000.00718.25
8.2.20.0000.00817.96
8.2.10.0060.00317.87
8.2.00.0040.00717.87
8.1.280.0150.00025.92
8.1.270.0040.00418.65
8.1.260.0040.00726.35
8.1.250.0040.00428.09
8.1.240.0090.00024.17
8.1.230.0110.00019.41
8.1.220.0040.00417.91
8.1.210.0080.00018.77
8.1.200.0060.00317.35
8.1.190.0000.00817.65
8.1.180.0080.00018.99
8.1.170.0080.00018.68
8.1.160.0080.00022.38
8.1.150.0040.00418.85
8.1.140.0000.00817.59
8.1.130.0070.00018.07
8.1.120.0000.00717.43
8.1.110.0000.00917.64
8.1.100.0030.00517.53
8.1.90.0000.00817.52
8.1.80.0040.00417.50
8.1.70.0030.00317.49
8.1.60.0000.00817.77
8.1.50.0040.00417.69
8.1.40.0050.00217.62
8.1.30.0090.00017.80
8.1.20.0040.00417.72
8.1.10.0040.00417.70
8.1.00.0050.00317.65
8.0.300.0000.00718.77
8.0.290.0030.00617.30
8.0.280.0030.00318.53
8.0.270.0030.00317.41
8.0.260.0030.00317.15
8.0.250.0000.00717.11
8.0.240.0070.00317.15
8.0.230.0000.00717.11
8.0.220.0000.00817.12
8.0.210.0000.00717.04
8.0.200.0030.00317.14
8.0.190.0040.00417.09
8.0.180.0040.00417.09
8.0.170.0060.00317.12
8.0.160.0050.00217.05
8.0.150.0000.00717.03
8.0.140.0000.00817.01
8.0.130.0000.00613.66
8.0.120.0060.00317.14
8.0.110.0050.00317.13
8.0.100.0040.00417.28
8.0.90.0020.00517.12
8.0.80.0160.00017.14
8.0.70.0030.00617.14
8.0.60.0000.00817.02
8.0.50.0000.00817.12
8.0.30.0110.01017.14
8.0.20.0100.01117.40
8.0.10.0040.00417.20
8.0.00.0090.01016.92
7.4.330.0050.00015.00
7.4.320.0000.00616.58
7.4.300.0030.00316.75
7.4.290.0040.00416.54
7.4.280.0030.00616.67
7.4.270.0030.00316.69
7.4.260.0050.00216.59
7.4.250.0050.00216.76
7.4.240.0060.00216.82
7.4.230.0030.00316.69
7.4.220.0120.00616.72
7.4.210.0080.00816.71
7.4.200.0030.00416.59
7.4.190.0040.00416.83
7.4.160.0130.00316.84
7.4.150.0090.00917.40
7.4.140.0140.00717.86
7.4.130.0080.01016.73
7.4.120.0100.01016.87
7.4.110.0000.01816.65
7.4.100.0080.01116.56
7.4.90.0060.01516.73
7.4.80.0210.00319.39
7.4.70.0060.01216.66
7.4.60.0060.01216.75
7.4.50.0060.00316.57
7.4.40.0040.01122.77
7.4.30.0070.01016.89
7.4.00.0060.00615.26
7.3.330.0050.00013.32
7.3.320.0040.00413.51
7.3.310.0000.01016.64
7.3.300.0000.00716.64
7.3.290.0120.00316.64
7.3.280.0070.01216.61
7.3.270.0120.00617.40
7.3.260.0090.00916.47
7.3.250.0090.00816.50
7.3.240.0130.01016.41
7.3.230.0090.00916.64
7.3.210.0030.01416.59
7.3.200.0040.01219.39
7.3.190.0130.00416.64
7.3.180.0140.00616.78
7.3.170.0070.01016.69
7.3.160.0040.01216.56
7.3.120.0000.01715.19
7.2.330.0000.01916.90
7.2.320.0130.00916.70
7.2.310.0100.01316.84
7.2.300.0140.00416.70
7.2.290.0070.01016.76
7.2.60.0000.01416.83
7.2.00.0040.00819.35
7.1.200.0090.00915.81
7.1.100.0240.00318.45
7.1.70.0040.00417.32
7.1.60.0040.02119.82
7.1.50.0080.00817.43
7.1.00.0100.02722.68
7.0.200.0000.00917.09
7.0.140.0100.07022.30
7.0.60.0070.07720.15
7.0.50.0070.08018.13
7.0.40.0070.07020.57
7.0.30.0330.05720.56
7.0.20.0270.06720.54
7.0.10.0300.07320.54
7.0.00.0070.06720.58
5.6.280.0030.07721.48
5.6.210.0030.08321.05
5.6.200.0130.07318.74
5.6.190.0130.07721.06
5.6.180.4070.04320.96
5.6.170.0230.07720.88
5.6.160.0200.04020.89
5.6.150.0070.06018.50
5.6.140.0070.05318.61
5.6.130.0030.05318.59
5.6.120.0000.08721.28
5.6.110.0100.07721.40
5.6.100.0170.07021.52
5.6.90.0130.06021.34
5.6.80.0070.08020.66
5.6.70.0100.03720.80
5.5.350.0230.07020.63
5.5.340.0000.04318.40
5.5.330.0100.08320.84
5.5.320.0330.07320.63
5.5.310.0230.07020.61
5.5.300.0000.04318.53
5.5.290.0070.06318.38
5.5.280.0070.04721.05
5.5.270.0200.07021.23
5.5.260.0070.06021.18
5.5.250.0070.06720.96
5.5.240.0030.08320.63
5.4.450.0700.05019.68
5.4.440.0830.06019.90
5.4.430.0100.05319.68
5.4.420.0800.05319.68
5.4.410.0830.05019.55
5.4.400.0330.07019.01
5.4.390.0370.05719.11
5.4.380.0230.07319.08
5.4.370.0300.04019.18
5.4.360.0070.05719.10
5.4.350.0200.07512.21
5.4.340.0130.05312.21
5.4.320.0070.04012.70
5.4.310.0060.03812.70
5.4.300.0080.03812.70
5.4.290.0070.04112.70
5.4.280.0140.03412.60
5.4.270.0060.04012.60
5.4.260.0080.03912.60
5.4.250.0070.07319.27
5.4.240.0070.06019.08
5.4.230.0030.05719.22
5.4.220.0130.05719.14
5.4.210.0130.07719.23
5.4.200.0030.05718.96
5.4.190.0000.06319.16
5.4.180.0070.07019.04
5.4.170.0100.06719.04
5.4.160.0100.05019.03
5.4.150.0070.05319.23
5.4.140.0100.04716.86
5.4.130.0030.05316.85
5.4.120.0070.05016.65
5.4.110.0030.05716.89
5.4.100.0100.06716.88
5.4.90.0130.06016.67
5.4.80.0070.05716.83
5.4.70.0130.06716.83
5.4.60.0100.06316.68
5.4.50.0130.07316.79
5.4.40.0100.06316.83
5.4.30.0030.07016.69
5.4.20.0200.05016.61
5.4.10.0070.05316.64
5.4.00.0070.05716.11
5.3.290.0070.03812.91
5.3.280.0100.05014.78
5.3.270.0030.05714.73
5.3.260.0070.05714.73
5.3.250.0070.06714.79
5.3.240.0070.07314.68
5.3.230.0070.05714.79
5.3.220.0070.05714.86
5.3.210.0030.05714.65
5.3.200.0130.04714.69
5.3.190.0100.07314.75
5.3.180.0000.05714.56
5.3.170.0200.05714.64
5.3.160.0100.07714.64
5.3.150.0230.06314.69
5.3.140.0070.05314.88
5.3.130.0170.06314.66
5.3.120.0070.07014.62
5.3.110.0130.06714.74
5.3.100.0030.07714.33
5.3.90.0030.06314.26
5.3.80.0100.05714.02
5.3.70.0070.07014.04
5.3.60.0130.05314.09
5.3.50.0070.05014.09
5.3.40.0030.05314.23
5.3.30.0030.05014.05
5.3.20.0070.07013.77
5.3.10.0030.05313.78
5.3.00.0070.05313.97
5.2.170.0030.05311.34
5.2.160.0100.03711.31
5.2.150.0000.04711.34
5.2.140.0030.04311.30
5.2.130.0070.04711.25
5.2.120.0070.03711.26
5.2.110.0100.05011.36
5.2.100.0070.03711.16
5.2.90.0070.04711.42
5.2.80.0100.04011.21
5.2.70.0130.05011.20
5.2.60.0070.04011.25
5.2.50.0030.04711.13
5.2.40.0070.05011.12
5.2.30.0070.04011.14
5.2.20.0030.04311.08
5.2.10.0000.04310.90
5.2.00.0130.03010.84
5.1.60.0100.04710.15
5.1.50.0000.03710.28
5.1.40.0070.0339.99
5.1.30.0170.02710.60
5.1.20.0030.04010.68
5.1.10.0130.03010.15
5.1.00.0030.03310.23
5.0.50.0100.0238.66
5.0.40.0100.0338.57
5.0.30.0070.0578.39
5.0.20.0070.0238.35
5.0.10.0030.0308.29
5.0.00.0030.0438.44
4.4.90.0000.0237.20
4.4.80.0070.0207.20
4.4.70.0000.0277.20
4.4.60.0100.0177.20
4.4.50.0070.0277.20
4.4.40.0070.0377.20
4.4.30.0030.0207.20
4.4.20.0000.0237.20
4.4.10.0030.0337.20
4.4.00.0030.0407.20
4.3.110.0100.0177.20
4.3.100.0030.0307.20
4.3.90.0000.0307.20
4.3.80.0070.0307.20
4.3.70.0100.0207.20
4.3.60.0070.0237.20
4.3.50.0000.0237.20
4.3.40.0030.0337.20
4.3.30.0000.0237.20
4.3.20.0070.0177.20
4.3.10.0000.0237.20
4.3.00.0030.0206.71

preferences:
40.68 ms | 401 KiB | 5 Q