3v4l.org

run code in 300+ PHP versions simultaneously
<?php $source = <<<SOURCE <?xml version="1.0" encoding="utf-8" ?> <feed xmlns="http://www.w3.org/2005/Atom" xmlns:apcm="http://ap.org/schemas/03/2005/apcm" xmlns:apnm="http://ap.org/schemas/03/2005/apnm" xmlns:georss="http://www.georss.org/georss" xmlns:o="http://w3.org/ns/odrl/2/"> <entry xmlns="http://www.w3.org/2005/Atom"> <apcm:ContentMetadata xmlns:apcm="http://ap.org/schemas/03/2005/apcm"> <apcm:Property Name="EntitlementMatch" Id="urn:publicid:ap.org:product:41664" Value="AP Top News"/> <apcm:Property Name="EntitlementMatch" Id="urn:publicid:ap.org:product:42430" Value="AP Top News - International - Stories"/> <apcm:Property Name="EntitlementMatch" Id="urn:publicid:ap.org:package:100518" Value="AP Top News Package"/> </apcm:ContentMetadata> </entry> </feed> SOURCE; $feed_entry = simplexml_load_string($source); $feed_entry->registerXPathNamespace('a', 'http://www.w3.org/2005/Atom'); $elements = $feed_entry->xpath('//a:entry/apcm:ContentMetadata/apcm:Property'); foreach ($elements as $element) { $id = $element->attributes()->Id->__toString(); $value = $element->attributes()->Value->__toString(); echo "The Id is: $id and the Value is: $value" . PHP_EOL; }

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.0110.00716.74
8.3.60.0130.01018.80
8.3.50.0070.01122.30
8.3.40.0120.00318.90
8.3.30.0120.00318.93
8.3.20.0080.00020.71
8.3.10.0000.00820.90
8.3.00.0000.00824.04
8.2.190.0040.01117.13
8.2.180.0110.00416.88
8.2.170.0110.00719.39
8.2.160.0070.00720.86
8.2.150.0000.00824.18
8.2.140.0080.00024.66
8.2.130.0040.00426.16
8.2.120.0040.00421.46
8.2.110.0100.00021.51
8.2.100.0060.00618.16
8.2.90.0030.00617.91
8.2.80.0040.00420.20
8.2.70.0040.00418.00
8.2.60.0000.00817.88
8.2.50.0040.00417.88
8.2.40.0000.00817.88
8.2.30.0000.00819.72
8.2.20.0030.00518.00
8.2.10.0080.00018.38
8.2.00.0020.00518.49
8.1.280.0120.00925.92
8.1.270.0080.00024.36
8.1.260.0040.00426.35
8.1.250.0080.00028.09
8.1.240.0070.00322.71
8.1.230.0060.00621.27
8.1.220.0030.00518.16
8.1.210.0030.00619.14
8.1.200.0040.00417.73
8.1.190.0040.00417.60
8.1.180.0000.00818.10
8.1.170.0050.00317.63
8.1.160.0020.00521.01
8.1.150.0000.00719.23
8.1.140.0080.00019.94
8.1.130.0030.00318.05
8.1.120.0000.00717.84
8.1.110.0060.00317.88
8.1.100.0000.00817.75
8.1.90.0000.00817.72
8.1.80.0040.00417.91
8.1.70.0000.00717.91
8.1.60.0040.00418.04
8.1.50.0040.00417.73
8.1.40.0050.00317.81
8.1.30.0040.00417.88
8.1.20.0060.00317.97
8.1.10.0040.00417.87
8.1.00.0040.00418.00
8.0.300.0030.00620.36
8.0.290.0060.00317.00
8.0.280.0030.00318.74
8.0.270.0000.00717.60
8.0.260.0030.00317.65
8.0.250.0060.00317.44
8.0.240.0030.00317.25
8.0.230.0040.00417.45
8.0.220.0040.00417.18
8.0.210.0040.00417.44
8.0.200.0000.00717.45
8.0.190.0040.00417.28
8.0.180.0040.00417.23
8.0.170.0040.00417.27
8.0.160.0070.00017.44
8.0.150.0000.00717.46
8.0.140.0080.00017.13
8.0.130.0030.00313.89
8.0.120.0030.00617.38
8.0.110.0040.00417.29
8.0.100.0050.00217.20
8.0.90.0080.00017.32
8.0.80.0040.01117.26
8.0.70.0030.00517.29
8.0.60.0070.00017.34
8.0.50.0000.00817.24
8.0.30.0030.01217.45
8.0.20.0140.00517.47
8.0.10.0000.00717.52
8.0.00.0090.01117.13
7.4.330.0020.00217.25
7.4.320.0030.00316.86
7.4.300.0000.00617.02
7.4.290.0030.00316.86
7.4.280.0000.00817.02
7.4.270.0000.00716.92
7.4.260.0040.00416.97
7.4.250.0040.00416.74
7.4.240.0030.00316.94
7.4.230.0000.00817.09
7.4.220.0060.01216.92
7.4.210.0050.01216.97
7.4.200.0000.00717.13
7.4.160.0060.01017.00
7.4.150.0040.01617.40
7.4.140.0110.01017.86
7.4.130.0090.00716.82
7.4.120.0080.01316.91
7.4.110.0030.01416.70
7.4.100.0140.00916.86
7.4.90.0070.01016.90
7.4.80.0040.01519.39
7.4.70.0040.01316.92
7.4.60.0130.00416.92
7.4.50.0060.01016.95
7.4.40.0100.01016.82
7.4.30.0030.01417.00
7.4.10.0090.00915.46
7.4.00.0030.01215.14
7.3.330.0050.00013.71
7.3.320.0000.00613.70
7.3.310.0060.00016.83
7.3.300.0070.00016.65
7.3.290.0040.00416.74
7.3.280.0100.00516.80
7.3.270.0140.00417.40
7.3.260.0120.00616.74
7.3.250.0130.00416.94
7.3.240.0100.00616.77
7.3.230.0100.00716.66
7.3.210.0080.00816.83
7.3.200.0110.00516.75
7.3.190.0060.00916.81
7.3.180.0030.01316.95
7.3.170.0100.00716.74
7.3.160.0100.00716.77
7.3.130.0070.01015.13
7.3.120.0100.01014.94
7.3.110.0100.01014.88
7.3.100.0090.00914.86
7.3.90.0100.00315.14
7.3.80.0060.00914.98
7.3.70.0080.00314.98
7.3.60.0030.01214.98
7.3.50.0040.01114.75
7.3.40.0100.00315.20
7.3.30.0060.00314.98
7.3.20.0030.01217.00
7.3.10.0070.00316.81
7.3.00.0030.00916.89
7.2.330.0040.01516.90
7.2.320.0120.00417.20
7.2.310.0110.01216.88
7.2.300.0040.01317.14
7.2.290.0120.00916.98
7.2.260.0070.01315.42
7.2.250.0000.01615.41
7.2.240.0030.01015.39
7.2.230.0070.01115.14
7.2.220.0120.00615.46
7.2.210.0040.01415.13
7.2.200.0060.00915.39
7.2.190.0040.01115.40
7.2.180.0070.00715.36
7.2.170.0040.00815.11
7.2.160.0000.01115.42
7.2.150.0000.01617.13
7.2.140.0000.01017.12
7.2.130.0080.00816.92
7.2.120.0000.01116.96
7.2.110.0140.00017.11
7.2.100.0070.00417.13
7.2.90.0070.00717.11
7.2.80.0000.01417.41
7.2.70.0030.00916.90
7.2.60.0030.00717.06
7.2.50.0000.00916.98
7.2.40.0060.00917.17
7.2.30.0040.01117.14
7.2.20.0050.00517.05
7.2.10.0000.01416.96
7.2.00.0040.00918.33
7.1.330.0070.00716.25
7.1.320.0100.00715.96
7.1.310.0090.00615.89
7.1.300.0030.01015.93
7.1.290.0120.00415.72
7.1.280.0070.00715.93
7.1.270.0030.01015.98
7.1.260.0040.00815.92
7.1.250.0000.01316.02
7.1.240.0090.00616.18
7.1.230.0060.00315.89
7.1.220.0070.00715.86
7.1.210.0000.01016.05
7.1.200.0050.00816.06
7.1.190.0100.00715.94
7.1.180.0090.00616.00
7.1.170.0060.00616.04
7.1.160.0060.00616.00
7.1.150.0070.00715.82
7.1.140.0030.00815.80
7.1.130.0030.00715.86
7.1.120.0000.01416.17
7.1.110.0090.00315.99
7.1.100.0020.01217.29
7.1.90.0070.00715.96
7.1.80.0030.00516.25
7.1.70.0000.00816.53
7.1.60.0060.01217.66
7.1.50.0070.01016.37
7.1.40.0030.00815.72
7.1.30.0000.01315.89
7.1.20.0030.00616.02
7.1.10.0070.01015.96
7.1.00.0030.04319.27
7.0.330.0090.00615.36
7.0.320.0000.01415.63
7.0.310.0000.00915.53
7.0.300.0040.00415.55
7.0.290.0060.00315.43
7.0.280.0000.00915.85
7.0.270.0100.00315.61
7.0.260.0000.00915.71
7.0.250.0080.00415.61
7.0.240.0000.01515.63
7.0.230.0040.00715.64
7.0.220.0030.00715.47
7.0.210.0040.00915.70
7.0.200.0200.00815.12
7.0.190.0040.00715.73
7.0.180.0070.00315.64
7.0.170.0030.00615.56
7.0.160.0090.00615.52
7.0.150.0030.01315.51
7.0.140.0030.01215.60
7.0.130.0000.01215.61
7.0.120.0030.00915.94
7.0.110.0030.01415.80
7.0.100.0100.03717.92
7.0.90.0030.04517.86
7.0.80.0050.03117.88
7.0.70.0070.04217.97
7.0.60.0050.04817.99
7.0.50.0060.04518.01
7.0.40.0060.04516.90
7.0.30.0120.04017.07
7.0.20.0110.04116.89
7.0.10.0060.04817.04
7.0.00.0040.04717.07
5.6.400.0100.00714.37
5.6.390.0080.00414.20
5.6.380.0070.00314.52
5.6.370.0030.01114.68
5.6.360.0060.00914.45
5.6.350.0120.00414.19
5.6.340.0060.00314.48
5.6.330.0120.00014.52
5.6.320.0030.00614.60
5.6.310.0030.00614.53
5.6.300.0070.01014.62
5.6.290.0100.00314.50
5.6.280.0040.02017.73
5.6.270.0060.01214.70
5.6.260.0100.00014.29
5.6.250.0100.03617.71
5.6.240.0060.04717.62
5.6.230.0070.04217.72
5.6.220.0120.03517.59
5.6.210.0110.03717.55
5.6.200.0030.03917.98
5.6.190.0110.04117.84
5.6.180.0070.04717.83
5.6.170.0070.04217.72
5.6.160.0030.04618.12
5.6.150.0110.04118.00
5.6.140.0080.04517.87
5.6.130.0070.04518.07
5.6.120.0050.04817.77
5.6.110.0050.04517.84
5.6.100.0100.04217.73
5.6.90.0070.04617.92
5.6.80.0070.03517.53
5.6.70.0090.04717.46
5.6.60.0030.04517.49
5.6.50.0130.03817.47
5.6.40.0090.03717.60
5.6.30.0080.04317.53
5.6.20.0070.04617.41
5.6.10.0070.03417.40
5.6.00.0100.04317.63
5.5.380.0070.02817.46
5.5.370.0100.04417.44
5.5.360.0150.03417.63
5.5.350.0030.04617.40
5.5.340.0050.04517.70
5.5.330.0120.04117.73
5.5.320.0110.04117.76
5.5.310.0070.04517.78
5.5.300.0060.04617.71
5.5.290.0100.04317.73
5.5.280.0120.04117.80
5.5.270.0110.04317.71
5.5.260.0100.04717.83
5.5.250.0060.03117.65
5.5.240.0090.04517.44
5.5.230.0030.04517.41
5.5.220.0050.04917.28
5.5.210.0050.04517.39
5.5.200.0070.02517.33
5.5.190.0020.04517.29
5.5.180.0060.03217.39
5.5.170.0120.00314.00
5.5.160.0060.04317.47
5.5.150.0070.04117.35
5.5.140.0020.03917.47
5.5.130.0070.03517.41
5.5.120.0030.04317.38
5.5.110.0080.04117.49
5.5.100.0100.03917.38
5.5.90.0100.04217.27
5.5.80.0030.04317.12
5.5.70.0050.04617.37
5.5.60.0080.03117.42
5.5.50.0050.04317.33
5.5.40.0120.03717.39
5.5.30.0070.02517.22
5.5.20.0080.02517.21
5.5.10.0070.04217.35
5.5.00.0050.04717.31

preferences:
42.53 ms | 401 KiB | 5 Q