3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<ArrayOfItemSpecs xmlns="http://schemas.datacontract.org/2004/07/P.Common.ItemSpecs" xmlns:i="http://www.w3.org/2001/XMLSchema-instance"><ItemSpecs><ItemCode>4003255</ItemCode><ItemSpec xmlns:a="http://schemas.microsoft.com/2003/10/Serialization/Arrays"><a:string>17</a:string><a:string>YES</a:string><a:string/><a:string>1</a:string><a:string/><a:string/><a:string/><a:string/><a:string/><a:string/><a:string/><a:string>40025</a:string><a:string></a:string><a:string></a:string><a:string/><a:string>970</a:string><a:string>3000810</a:string><a:string>4003392</a:string><a:string>4003623</a:string><a:string>4003282</a:string></ItemSpec></ItemSpecs></ArrayOfItemSpecs>'; $doc = new DOMDocument(); $doc->loadXML($xml); $xpath = new DOMXPath($doc); $xpath->registerNamespace("a", "http://schemas.microsoft.com/2003/10/Serialization/Arrays"); foreach($xpath->query("//a:string") as $node) { var_dump($node->nodeValue); }

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.0090.00617.00
8.3.60.0090.00918.93
8.3.50.0140.00617.81
8.3.40.0130.00319.14
8.3.30.0090.00618.93
8.3.20.0080.00022.27
8.3.10.0090.00022.24
8.3.00.0000.00822.28
8.2.190.0110.00817.25
8.2.180.0150.00017.00
8.2.170.0120.00322.96
8.2.160.0110.00420.82
8.2.150.0030.00624.18
8.2.140.0050.00324.66
8.2.130.0090.00021.57
8.2.120.0040.00426.35
8.2.110.0160.00622.57
8.2.100.0120.00018.22
8.2.90.0030.00522.78
8.2.80.0030.00518.00
8.2.70.0040.00418.18
8.2.60.0050.00518.53
8.2.50.0030.00618.10
8.2.40.0000.00819.80
8.2.30.0040.00420.86
8.2.20.0040.00418.43
8.2.10.0000.00719.67
8.2.00.0070.00018.61
8.1.280.0060.01225.92
8.1.270.0050.00322.51
8.1.260.0180.00026.35
8.1.250.0040.00428.09
8.1.240.0030.00722.70
8.1.230.0090.00321.20
8.1.220.0000.00818.16
8.1.210.0080.00019.35
8.1.200.0050.00317.60
8.1.190.0050.00317.61
8.1.180.0080.00018.10
8.1.170.0080.00019.04
8.1.160.0000.00719.27
8.1.150.0080.00019.20
8.1.140.0030.00619.14
8.1.130.0070.00017.82
8.1.120.0040.00417.84
8.1.110.0000.00817.79
8.1.100.0040.00417.85
8.1.90.0080.00017.75
8.1.80.0040.00417.77
8.1.70.0030.00517.61
8.1.60.0040.00417.86
8.1.50.0000.00817.80
8.1.40.0030.00617.81
8.1.30.0040.00417.91
8.1.20.0000.00817.82
8.1.10.0000.00818.01
8.1.00.0050.00317.75
8.0.300.0000.00720.14
8.0.290.0050.00317.13
8.0.280.0000.00718.81
8.0.270.0040.00417.64
8.0.260.0030.00517.27
8.0.250.0030.00317.40
8.0.240.0030.00317.24
8.0.230.0000.00817.21
8.0.220.0000.00817.18
8.0.210.0000.00717.11
8.0.200.0030.00317.35
8.0.190.0040.00417.19
8.0.180.0050.00317.18
8.0.170.0090.00017.38
8.0.160.0040.00417.41
8.0.150.0000.00717.08
8.0.140.0000.00717.22
8.0.130.0060.00013.81
8.0.120.0030.00617.10
8.0.110.0040.00417.26
8.0.100.0030.00517.24
8.0.90.0000.00717.18
8.0.80.0060.00917.33
8.0.70.0000.00717.17
8.0.60.0040.00417.29
8.0.50.0080.00017.25
8.0.30.0130.00617.44
8.0.20.0070.01417.30
8.0.10.0000.00817.38
8.0.00.0150.00417.20
7.4.330.0020.00215.55
7.4.320.0040.00417.04
7.4.300.0030.00616.84
7.4.290.0040.00416.98
7.4.280.0030.00916.83
7.4.270.0000.00716.96
7.4.260.0030.00316.95
7.4.250.0040.00416.91
7.4.240.0000.00816.91
7.4.230.0070.00016.97
7.4.220.0040.00417.13
7.4.210.0080.00816.98
7.4.200.0070.00017.02
7.4.160.0080.00816.91
7.4.130.0090.00917.01
7.4.120.0130.01016.86
7.4.110.0060.01616.87
7.4.100.0110.01516.69
7.4.90.0200.00316.85
7.4.80.0120.00619.39
7.4.70.0090.01516.84
7.4.60.0100.00716.99
7.4.50.0070.01116.90
7.4.40.0090.00916.87
7.4.00.0090.00815.16
7.3.330.0000.00613.25
7.3.320.0000.00713.52
7.3.310.0000.00716.64
7.3.300.0090.00016.59
7.3.290.0000.00716.53
7.3.280.0060.01116.53
7.3.260.0100.00716.72
7.3.240.0100.00716.79
7.3.230.0120.00616.67
7.3.210.0110.00716.84
7.3.200.0070.01016.91
7.3.190.0060.01116.92
7.3.180.0100.00716.64
7.3.170.0000.01716.93
7.3.160.0060.02016.89
7.3.120.0040.01514.88
7.3.110.0000.01814.84
7.3.100.0060.00914.87
7.3.90.0030.01014.99
7.3.80.0100.00314.95
7.3.70.0000.01314.78
7.3.60.0070.00714.88
7.3.50.0070.01114.89
7.3.40.0100.00414.85
7.3.30.0080.00714.78
7.3.20.0060.01015.61
7.3.10.0120.00615.55
7.3.00.0110.00415.55
7.2.330.0030.01517.29
7.2.320.0090.01016.72
7.2.310.0180.00617.04
7.2.300.0070.01016.84
7.2.290.0110.00616.89
7.2.250.0060.01215.33
7.2.240.0130.00315.05
7.2.230.0090.00314.88
7.2.220.0030.01115.05
7.2.210.0040.01115.34
7.2.200.0040.00815.20
7.2.190.0000.01514.97
7.2.180.0060.01215.19
7.2.170.0090.00415.39
7.2.160.0110.00515.11
7.2.150.0130.00315.15
7.2.140.0090.00615.11
7.2.130.0140.00615.13
7.2.120.0150.00815.36
7.2.110.0130.01315.24
7.2.100.0120.00415.24
7.2.90.0100.00615.33
7.2.80.0060.00915.45
7.2.70.0100.00715.29
7.2.60.0120.00515.30
7.2.50.0150.00715.28
7.2.40.0480.00715.31
7.2.30.0230.00815.29
7.2.20.0090.01215.14
7.2.10.0060.00915.29
7.2.00.0160.01015.35
7.1.330.0100.00616.07
7.1.320.0060.00915.91
7.1.310.0060.01216.01
7.1.300.0070.00715.89
7.1.290.0030.00816.00
7.1.280.0180.00514.75
7.1.270.0080.00814.73
7.1.260.0310.00614.68
7.1.250.0090.00714.04

preferences:
51.12 ms | 401 KiB | 5 Q