3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rss ='<?xml version="1.0" encoding="UTF-8"?> <rss version="2.0" xmlns:media="http://search.yahoo.com/mrss/"> <channel> <item> <media:content url="http://blog.com/image1.jpg" width="661" height="310"/> </item> </channel> </rss>'; $xml = simplexml_load_string($rss); $urls = $xml->xpath('/rss/channel/item/media:content'); echo $urls[0]->attributes()->url; foreach ($urls as $url) { echo $url->attributes()->url; }

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.4.140.0130.00817.89
8.4.130.0100.00718.09
8.4.120.0110.00521.02
8.4.110.0060.00322.86
8.4.100.0130.00918.24
8.4.90.0050.00422.96
8.4.80.0060.00319.94
8.4.70.0040.00418.43
8.4.60.0120.00919.07
8.4.50.0050.00519.13
8.4.40.0090.00618.05
8.4.30.0130.00319.94
8.4.20.0150.00722.52
8.4.10.0100.00718.09
8.3.270.0080.01116.80
8.3.260.0100.00917.17
8.3.250.0070.01119.21
8.3.240.0110.00819.32
8.3.230.0120.00616.93
8.3.220.0040.00519.31
8.3.210.0100.00518.90
8.3.200.0060.00317.18
8.3.190.0080.01019.49
8.3.180.0090.01016.89
8.3.170.0160.00317.55
8.3.160.0130.00621.20
8.3.150.0160.00317.48
8.3.140.0040.00416.94
8.3.130.0060.00318.67
8.3.120.0040.00421.00
8.3.110.0050.00320.94
8.3.100.0050.00317.00
8.3.90.0120.00318.73
8.3.80.0030.00618.81
8.3.70.0080.00617.00
8.3.60.0090.00618.81
8.3.50.0110.00517.79
8.3.40.0080.00819.18
8.3.30.0120.00418.91
8.3.20.0040.00420.63
8.3.10.0080.00023.90
8.3.00.0080.00020.17
8.2.290.0120.00821.08
8.2.280.0120.00718.68
8.2.270.0070.01119.45
8.2.260.0100.01017.18
8.2.250.0040.01120.98
8.2.240.0090.00019.41
8.2.230.0030.00622.58
8.2.220.0150.00324.06
8.2.210.0050.00326.77
8.2.200.0030.00917.00
8.2.190.0100.01017.00
8.2.180.0190.00318.86
8.2.170.0100.01019.31
8.2.160.0070.00722.96
8.2.150.0080.00025.66
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0040.00421.52
8.2.110.0040.00722.75
8.2.100.0090.00318.22
8.2.90.0030.00618.25
8.2.80.0030.00619.56
8.2.70.0000.00818.00
8.2.60.0060.00318.00
8.2.50.0030.00617.88
8.2.40.0040.00418.00
8.2.30.0080.00019.63
8.2.20.0030.00618.43
8.2.10.0040.00418.44
8.2.00.0030.00618.64
8.1.330.0140.00422.29
8.1.320.0120.00716.43
8.1.310.0110.00419.04
8.1.300.0080.00018.36
8.1.290.0000.00918.88
8.1.280.0140.00425.92
8.1.270.0050.00320.36
8.1.260.0050.00326.35
8.1.250.0000.00828.09
8.1.240.0040.00422.87
8.1.230.0070.00421.28
8.1.220.0040.00418.04
8.1.210.0080.00019.07
8.1.200.0060.00317.72
8.1.190.0040.00417.68
8.1.180.0050.00318.10
8.1.170.0000.00918.02
8.1.160.0040.00419.23
8.1.150.0080.00020.61
8.1.140.0000.00818.11
8.1.130.0000.00719.35
8.1.120.0070.00017.85
8.1.110.0040.00417.68
8.1.100.0040.00417.66
8.1.90.0050.00317.70
8.1.80.0000.00717.94
8.1.70.0000.00717.88
8.1.60.0030.00617.79
8.1.50.0030.00517.95
8.1.40.0000.00817.73
8.1.30.0030.00617.91
8.1.20.0050.00317.91
8.1.10.0040.00418.06
8.1.00.0000.01117.84
8.0.300.0080.00020.33
8.0.290.0040.00417.13
8.0.280.0030.00318.82
8.0.270.0060.00317.61
8.0.260.0030.00817.14
8.0.250.0030.00317.43
8.0.240.0030.00517.18
8.0.230.0080.00217.28
8.0.220.0000.00717.29
8.0.210.0000.00817.31
8.0.200.0050.00217.14
8.0.190.0000.00717.36
8.0.180.0070.00017.28
8.0.170.0080.00317.12
8.0.160.0000.00717.31
8.0.150.0030.00517.38
8.0.140.0030.00617.31
8.0.130.0050.00013.66
8.0.120.0080.00017.11
8.0.110.0050.00317.23
8.0.100.0040.00417.27
8.0.90.0000.00817.20
8.0.80.0090.00617.29
8.0.70.0000.00717.27
8.0.60.0070.00017.38
8.0.50.0000.00817.27
8.0.30.0100.00717.43
8.0.20.0100.01117.43
8.0.10.0120.00917.39
8.0.00.0110.01117.32
7.4.330.0050.00015.55
7.4.320.0000.00716.96
7.4.300.0040.00416.96
7.4.290.0000.00716.81
7.4.280.0080.00016.93
7.4.270.0040.00416.83
7.4.260.0050.00217.03
7.4.250.0090.00017.00
7.4.240.0000.00716.96
7.4.230.0080.00016.79
7.4.220.0030.00616.94
7.4.210.0080.00817.00
7.4.200.0030.00316.99
7.4.160.0100.00816.97
7.4.150.0090.01017.15
7.4.140.0110.00717.64
7.4.130.0100.00816.96
7.4.120.0090.01116.86
7.4.110.0100.01016.80
7.4.100.0090.00916.96
7.4.90.0140.00616.81
7.4.80.0060.01718.16
7.4.70.0070.01316.93
7.4.60.0110.00716.87
7.4.50.0090.00816.72
7.4.40.0090.00916.69
7.4.30.0070.01416.79
7.4.20.0170.00016.74
7.4.10.0060.01016.75
7.4.00.0090.00715.48
7.3.330.0060.00315.74
7.3.320.0060.00013.57
7.3.310.0000.00716.59
7.3.300.0000.00716.60
7.3.290.0060.00316.58
7.3.280.0120.00516.65
7.3.270.0110.00917.04
7.3.260.0110.00716.70
7.3.250.0130.00716.75
7.3.240.0060.01216.76
7.3.230.0070.01016.70
7.3.220.0060.01116.66
7.3.210.0130.00816.71
7.3.200.0070.01216.73
7.3.190.0120.00616.74
7.3.180.0090.00916.71
7.3.170.0110.00516.76
7.3.160.0140.00316.71
7.3.150.0100.00916.59
7.3.140.0170.00016.57
7.3.130.0080.00816.62
7.3.120.0040.01615.50
7.3.110.0110.00815.53
7.3.100.0060.01015.53
7.3.90.0070.00815.56
7.3.80.0090.00815.63
7.3.70.0050.01015.65
7.3.60.0060.00715.64
7.3.50.0090.00515.58
7.3.40.0090.00615.44
7.3.30.0080.00815.55
7.3.20.0090.00816.78
7.3.10.0080.00916.83
7.3.00.0070.00916.78
7.2.340.0000.01616.84
7.2.330.0160.01416.82
7.2.320.0140.01216.93
7.2.310.0110.01116.88
7.2.300.0100.01316.84
7.2.290.0200.00517.02
7.2.280.0230.01216.80
7.2.270.0150.01116.85
7.2.260.0270.00216.77
7.2.250.0170.00615.66
7.2.240.0130.01215.77
7.2.230.0120.00915.68
7.2.220.0130.00715.89
7.2.210.0090.01215.69
7.2.200.0090.01115.69
7.2.190.0140.00615.73
7.2.180.0060.01415.79
7.2.170.0120.00915.74
7.2.160.0200.01016.99
7.2.150.0250.00817.01
7.2.140.0150.01317.05
7.2.130.0150.01317.10
7.2.120.0170.00617.09
7.2.110.0160.00717.13
7.2.100.0130.00817.21
7.2.90.0150.01217.12
7.2.80.0160.00617.07
7.2.70.0300.01516.96
7.2.60.0110.00717.07
7.2.50.0180.00517.06
7.2.40.0110.00917.00
7.2.30.0180.00817.12
7.2.20.0170.01017.38
7.2.10.0120.01217.42
7.2.00.0120.00917.54
7.1.330.0110.01115.90
7.1.320.0110.00815.88
7.1.310.0120.00816.03
7.1.300.0140.00415.90
7.1.290.0150.00416.00
7.1.280.0110.00815.85
7.1.270.0100.00615.97
7.1.260.0130.00615.98
7.1.250.0150.00615.75
7.1.240.0110.01315.89
7.1.230.0110.01215.87
7.1.220.0130.00915.93
7.1.210.0080.01415.96
7.1.200.0120.00615.95
7.1.190.0200.00315.94
7.1.180.0110.00915.90
7.1.170.0120.01015.84
7.1.160.0130.01015.83
7.1.150.0130.01115.83
7.1.140.0130.01016.46
7.1.130.0130.00916.40
7.1.120.0120.01816.34
7.1.110.0430.01116.13
7.1.100.0130.01016.11
7.1.90.0140.01016.08
7.1.80.0070.01416.11
7.1.70.0110.01115.80
7.1.60.0190.00821.77
7.1.50.0240.00921.72
7.1.40.0180.01221.61
7.1.30.0190.01221.55
7.1.20.0170.01221.61
7.1.10.0200.00815.57
7.1.00.0110.00915.61
7.0.330.0130.00815.65
7.0.320.0230.00615.61
7.0.310.0210.00715.55
7.0.300.0230.00715.73
7.0.290.0220.02215.73
7.0.280.0300.00315.70
7.0.270.0190.00915.63
7.0.260.0440.00815.71
7.0.250.0140.02215.80
7.0.240.0260.00715.68
7.0.230.0220.02115.78
7.0.220.0170.01115.77
7.0.210.0190.01315.52
7.0.200.0200.01015.63
7.0.190.0200.01915.78
7.0.180.0640.01115.73
7.0.170.0210.00715.84
7.0.160.0280.00015.73
7.0.150.0200.00815.65
7.0.140.0200.01015.67
7.0.130.0220.00715.80
7.0.120.0160.01615.66
7.0.110.0380.00815.73
7.0.100.0190.01315.61
7.0.90.0180.00815.39
7.0.80.0160.01415.57
7.0.70.0190.01315.54
7.0.60.0210.01015.46
7.0.50.0310.00415.63
7.0.40.0130.01015.57
7.0.30.0850.00615.70
7.0.20.0180.01015.52
7.0.10.0250.00815.53
7.0.00.0110.01915.57
5.6.400.0100.01316.15
5.6.390.0250.00416.10
5.6.380.0160.00515.27
5.6.370.0140.01516.18
5.6.360.0230.01216.13
5.6.350.0190.01116.15
5.6.340.0210.00916.18
5.6.330.0210.00916.18
5.6.320.0190.01316.22
5.6.310.0170.01416.21
5.6.300.0120.01616.05
5.6.290.0190.01516.16
5.6.280.0120.01616.13
5.6.270.0200.00816.25
5.6.260.0230.01016.23
5.6.250.0230.01016.05
5.6.240.0170.01716.21
5.6.230.0290.00016.28
5.6.220.0160.01216.25
5.6.210.0510.00816.37
5.6.200.0200.01016.41
5.6.190.0150.01916.31
5.6.180.0230.01016.21
5.6.170.0240.01916.47
5.6.160.0190.01516.41
5.6.150.0210.00616.39
5.6.140.0150.01216.44
5.6.130.0090.02016.34
5.6.120.0150.01716.34
5.6.110.0200.01416.29
5.6.100.0230.01016.32
5.6.90.0100.01916.16
5.6.80.0190.01316.14
5.6.70.0180.01316.43
5.6.60.0200.00716.30
5.6.50.0130.01316.15
5.6.40.0170.01016.23
5.6.30.0230.01016.23
5.6.20.0100.01916.12
5.6.10.0190.00916.05
5.6.00.0180.00916.09

preferences:
118.89 ms | 403 KiB | 5 Q