3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<?xml version="1.0" encoding="UTF-8"?> <root> <item id="images"> <images handle="kings-of-leon_poster_v02_webjpg" path="workspace/assets/uploads/" type="file">kings of leon_poster_v02_WEB.jpg</images> </item> <item id="about"> <page-name handle="new-age" type="page-name">New Age</page-name> </item> <item id="about"> <page-name handle="new-age-2" type="page-name">New Age 2</page-name> </item> <item id="images"> <images handle="aae_seating-plan_v01jpg" path="workspace/assets/uploads/" type="file">AAE_Seating-plan_v01.jpg</images> </item> <item id="images"> <images handle="evidence-of-communication-between-myself-and-external-sourcespng" path="workspace/assets/uploads/" type="file">evidence-of-communication-between-myself-and-external-sources.png</images> </item> </root> '; $sxe = simplexml_load_string($xml); $doc = dom_import_simplexml ($sxe); $dom = new DOMDocument('1.0'); $xpath = new DOMXPath($dom); $doc = $dom->importNode($doc, true); $doc = $dom->appendChild($doc); $res1 = $xpath->query('//root/item[./@id="images"]/descendant::*[./@handle = "kings-of-leon_poster_v02_webjpg"]'); var_dump($res1); $item = $res1;

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.0080.01217.13
8.3.50.0080.01017.59
8.3.40.0180.00418.80
8.3.30.0090.00618.92
8.3.20.0040.00418.82
8.3.10.0000.00820.91
8.3.00.0070.00419.40
8.2.180.0100.00716.75
8.2.170.0130.00322.96
8.2.160.0080.00521.33
8.2.150.0070.00024.18
8.2.140.0080.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00020.27
8.2.110.0060.00321.55
8.2.100.0060.00617.97
8.2.90.0040.00521.19
8.2.80.0090.00018.18
8.2.70.0040.00417.88
8.2.60.0030.00618.05
8.2.50.0090.00018.07
8.2.40.0000.00718.53
8.2.30.0000.00818.45
8.2.20.0040.00418.13
8.2.10.0050.00318.00
8.2.00.0040.00418.11
8.1.280.0120.00625.92
8.1.270.0040.00424.66
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0090.00321.05
8.1.230.0130.00021.41
8.1.220.0030.00518.16
8.1.210.0040.00419.22
8.1.200.0100.00017.73
8.1.190.0040.00417.76
8.1.180.0060.00318.10
8.1.170.0080.00019.25
8.1.160.0000.00819.11
8.1.150.0000.00818.99
8.1.140.0070.00417.68
8.1.130.0070.00018.20
8.1.120.0000.00717.73
8.1.110.0000.00717.88
8.1.100.0030.00517.53
8.1.90.0000.00717.79
8.1.80.0000.00717.79
8.1.70.0000.00717.84
8.1.60.0050.00317.91
8.1.50.0000.00717.62
8.1.40.0000.00817.71
8.1.30.0050.00318.01
8.1.20.0040.00418.08
8.1.10.0040.00417.75
8.1.00.0000.00817.85
8.0.300.0040.00420.35
8.0.290.0060.00317.13
8.0.280.0070.00018.84
8.0.270.0070.00017.64
8.0.260.0030.00317.18
8.0.250.0000.00817.26
8.0.240.0050.00317.18
8.0.230.0000.00717.09
8.0.220.0000.00817.27
8.0.210.0000.00716.98
8.0.200.0030.00317.33
8.0.190.0040.00417.15
8.0.180.0050.00217.25
8.0.170.0080.00017.24
8.0.160.0000.00717.31
8.0.150.0000.00917.01
8.0.140.0110.00017.17
8.0.130.0030.00313.73
8.0.120.0000.00817.16
8.0.110.0000.00717.13
8.0.100.0040.00417.13
8.0.90.0000.00717.16
8.0.80.0070.00717.15
8.0.70.0040.00417.18
8.0.60.0050.00317.14
8.0.50.0020.00517.33
8.0.30.0140.00717.22
8.0.20.0150.00917.33
8.0.10.0000.00717.20
8.0.00.0080.01116.98
7.4.330.0020.00213.27
7.4.320.0000.00716.75
7.4.300.0020.00516.92
7.4.290.0040.00416.94
7.4.280.0000.00816.76
7.4.270.0070.00016.79
7.4.260.0000.00813.62
7.4.250.0060.00316.65
7.4.240.0040.00416.98
7.4.230.0000.00716.90
7.4.220.0130.00716.69
7.4.210.0050.01016.85
7.4.200.0040.00416.98
7.4.190.0000.00717.08
7.4.160.0080.00816.55
7.4.150.0090.00916.84
7.4.140.0110.01116.65
7.4.130.0070.01216.73
7.4.120.0120.00616.89
7.4.110.0120.00816.86
7.4.100.0100.00716.77
7.4.90.0110.00816.70
7.4.80.0140.00316.64
7.4.70.0120.00316.89
7.4.60.0090.00916.77
7.4.50.0000.00416.71
7.4.40.0090.00616.59
7.4.30.0110.00416.89
7.4.00.0080.00815.00
7.3.330.0030.00313.39
7.3.320.0030.00313.53
7.3.310.0040.00416.45
7.3.300.0070.00016.52
7.3.290.0060.00916.52
7.3.280.0050.01216.51
7.3.270.0100.00716.54
7.3.260.0070.01016.60
7.3.250.0100.01016.89
7.3.240.0070.01716.53
7.3.230.0090.00916.48
7.3.210.0100.00716.58
7.3.200.0080.01119.39
7.3.190.0060.01616.53
7.3.180.0090.00616.76
7.3.170.0120.00616.79
7.3.160.0130.01016.64
7.3.120.0090.00814.73
7.3.110.0070.01215.02
7.3.100.0080.00814.90
7.3.90.0070.00815.01
7.3.80.0070.00915.02
7.3.70.0070.00715.01
7.3.60.0060.00714.88
7.3.50.0050.00814.89
7.3.40.0020.01014.98
7.3.30.0060.01014.70
7.3.20.0060.00816.78
7.3.10.0060.00716.73
7.3.00.0080.00716.82
7.2.330.0040.01516.76
7.2.320.0050.01317.06
7.2.310.0130.00616.67
7.2.300.0090.00916.71
7.2.290.0040.01316.70
7.2.250.0070.01314.95
7.2.240.0070.01215.18
7.2.230.0090.00915.13
7.2.220.0050.00514.94
7.2.210.0100.00514.92
7.2.200.0030.00915.28
7.2.190.0060.01015.12
7.2.180.0070.00615.06
7.2.170.0080.00515.09
7.2.130.0100.00716.88
7.2.120.0100.00816.98
7.2.110.0100.00516.96
7.2.100.0080.00616.89
7.2.90.0050.00716.91
7.2.80.0060.00916.90
7.2.70.0070.00817.01
7.2.60.0080.00716.90
7.2.50.0060.00916.96
7.2.40.0060.00616.96
7.2.30.0070.00616.90
7.2.20.0100.00616.79
7.2.10.0050.00816.92
7.2.00.0070.00617.65
7.1.330.0100.00415.73
7.1.320.0110.00216.04
7.1.310.0040.00715.79
7.1.300.0020.01015.93
7.1.290.0030.01015.85
7.1.280.0050.00615.86
7.1.270.0070.00615.76
7.1.260.0040.00815.97
7.1.250.0060.00815.89
7.1.240.0100.00615.61
7.1.230.0030.00715.76
7.1.220.0060.00615.86
7.1.210.0040.01215.82
7.1.200.0080.00315.94
7.1.190.0100.00315.98
7.1.180.0030.00615.91
7.1.170.0030.01015.72
7.1.160.0030.01015.93
7.1.150.0100.00315.93
7.1.140.0030.00615.71
7.1.130.0100.00715.70
7.1.120.0070.00715.97
7.1.110.0070.00715.98
7.1.100.0030.01217.04
7.1.90.0000.01015.97
7.1.80.0070.00415.90
7.1.70.0030.00816.52
7.1.60.0070.01217.56
7.1.50.0040.01516.40
7.1.40.0000.01215.61
7.1.30.0140.00315.85
7.1.20.0120.00316.06
7.1.10.0070.00715.94
7.1.00.0010.04119.32
7.0.330.0030.01015.50
7.0.320.0090.00315.45
7.0.310.0040.00815.51
7.0.300.0000.01115.42
7.0.290.0040.01115.48
7.0.280.0030.01015.45
7.0.270.0000.01515.53
7.0.260.0030.01015.28
7.0.250.0030.00615.56
7.0.240.0100.00315.57
7.0.230.0080.00615.43
7.0.220.0000.01415.26
7.0.210.0060.00615.66
7.0.200.0070.00216.20
7.0.190.0030.01015.48
7.0.180.0040.00815.52
7.0.170.0030.00615.24
7.0.160.0070.00715.34
7.0.150.0100.00315.43
7.0.140.0040.04218.86
7.0.130.0070.01015.43
7.0.120.0020.04518.83
7.0.110.0060.00915.54
7.0.100.0060.00615.31
7.0.90.0030.00715.50
7.0.80.0000.01515.50
7.0.70.0060.01015.52
7.0.60.0040.03917.85
7.0.50.0030.02716.87
7.0.40.0100.04315.76
7.0.30.0140.03815.72
7.0.20.0050.04315.72
7.0.10.0070.04715.82
7.0.00.0030.02815.78
5.6.380.0040.00414.57
5.6.370.0050.00514.60
5.6.360.0120.00314.45
5.6.350.0100.00314.70
5.6.340.0070.00714.38
5.6.330.0000.00914.12
5.6.320.0000.01214.33
5.6.310.0060.00814.36
5.6.300.0080.00414.57
5.6.290.0060.00614.38
5.6.280.0060.04017.72
5.6.270.0090.00614.63
5.6.260.0030.01014.36
5.6.250.0030.01014.50
5.6.240.0030.01214.14
5.6.230.0000.01414.66
5.6.220.0000.00914.32
5.6.210.0190.03317.64
5.6.200.0080.03716.58
5.6.190.0080.04316.19
5.6.180.0110.04016.41
5.6.170.0060.04016.56
5.6.160.0070.04316.54
5.6.150.0110.04016.32
5.6.140.0070.04216.42
5.6.130.0080.02616.60
5.6.120.0050.04716.55
5.6.110.0030.04816.33
5.6.100.0070.02516.24
5.6.90.0090.04016.40
5.6.80.0070.04116.03
5.6.70.0050.04216.02
5.6.60.0020.04716.04
5.6.50.0120.03816.04
5.6.40.0070.04015.96
5.6.30.0070.03816.26
5.6.20.0090.03915.98
5.6.10.0070.03716.09
5.6.00.0040.04515.95
5.5.380.0030.00911.64
5.5.370.0000.00811.64
5.5.360.0040.00411.64
5.5.350.0180.03516.10
5.5.340.0050.03114.92
5.5.330.0070.04214.92
5.5.320.0070.04214.93
5.5.310.0080.04414.89
5.5.300.0050.03414.89
5.5.290.0030.03714.90
5.5.280.0030.02214.91
5.5.270.0070.04214.90
5.5.260.0030.02914.90
5.5.250.0050.02414.78
5.5.240.0030.02114.55
5.5.230.0060.04114.60
5.5.220.0050.04114.59
5.5.210.0020.04514.58
5.5.200.0010.02614.56
5.5.190.0030.03114.59
5.5.180.0080.03814.60
5.5.170.0120.00311.64
5.5.160.0080.02814.55
5.5.150.0080.02314.56
5.5.140.0060.04014.56
5.5.130.0080.03114.58
5.5.120.0060.03514.58
5.5.110.0020.04514.58
5.5.100.0030.04114.56
5.5.90.0050.04214.52
5.5.80.0010.04114.53
5.5.70.0070.03914.51
5.5.60.0030.03614.53
5.5.50.0030.03814.52
5.5.40.0050.04314.50
5.5.30.0030.03714.51
5.5.20.0030.02614.53
5.5.10.0020.04114.53
5.5.00.0030.04214.48
5.4.450.0080.02015.61
5.4.440.0030.04615.60
5.4.430.0080.04315.55
5.4.420.0130.03315.59
5.4.410.0070.03715.54
5.4.400.0040.02715.43
5.4.390.0050.04115.49
5.4.380.0040.02715.44
5.4.370.0050.02815.39
5.4.360.0060.03115.50
5.4.350.0050.03915.50
5.4.340.0020.04815.46
5.4.330.0080.00311.64
5.4.320.0050.04115.46
5.4.310.0020.04515.50
5.4.300.0070.02915.46
5.4.290.0030.03715.39
5.4.280.0080.04015.42
5.4.270.0050.04215.31
5.4.260.0070.04015.39
5.4.250.0070.04315.47
5.4.240.0050.04215.47
5.4.230.0090.03815.31
5.4.220.0070.02015.39
5.4.210.0050.02815.43
5.4.200.0020.03215.49
5.4.190.0050.03715.42
5.4.180.0100.02815.45
5.4.170.0090.04015.44
5.4.160.0010.04115.45
5.4.150.0070.02215.48
5.4.140.0080.04014.14
5.4.130.0050.03914.09
5.4.120.0080.03914.10
5.4.110.0070.04014.07
5.4.100.0050.04314.05
5.4.90.0050.03514.09
5.4.80.0120.03314.09
5.4.70.0060.03614.09
5.4.60.0080.02314.15
5.4.50.0060.03314.15
5.4.40.0080.01814.09
5.4.30.0030.02114.12
5.4.20.0070.02914.12
5.4.10.0050.03314.12
5.4.00.0060.03113.80
5.3.290.0060.02513.15
5.3.280.0120.03513.14
5.3.270.0070.04013.17
5.3.260.0050.02813.24
5.3.250.0060.03113.24
5.3.240.0030.04113.19
5.3.230.0050.04113.13
5.3.220.0070.02513.10
5.3.210.0020.02613.10
5.3.200.0070.04013.18
5.3.190.0030.03013.19
5.3.180.0120.01813.20
5.3.170.0100.03813.11
5.3.160.0020.02213.17
5.3.150.0080.02013.21
5.3.140.0010.02913.15
5.3.130.0030.04213.12
5.3.120.0030.03213.12
5.3.110.0050.04113.17
5.3.100.0050.02612.90
5.3.90.0110.01812.90
5.3.80.0050.03312.90
5.3.70.0030.02412.88
5.3.60.0100.03312.89
5.3.50.0070.03612.86
5.3.40.0080.03912.91
5.3.30.0070.03712.89
5.3.20.0030.04212.66
5.3.10.0030.04212.71
5.3.00.0080.03012.71
5.2.170.0000.03811.47
5.2.160.0100.03211.46
5.2.150.0020.03511.46
5.2.140.0050.02511.47
5.2.130.0000.02411.43
5.2.120.0010.03611.51
5.2.110.0050.03211.37
5.2.100.0070.02811.45
5.2.90.0030.02211.52
5.2.80.0050.03311.49
5.2.70.0030.03211.51
5.2.60.0030.03111.37
5.2.50.0040.01711.41
5.2.40.0040.03311.38
5.2.30.0050.03011.39
5.2.20.0020.02311.38
5.2.10.0050.03311.34
5.2.00.0020.02311.21
5.1.60.0030.02810.97
5.1.50.0070.02210.93
5.1.40.0030.01710.88
5.1.30.0050.03311.10
5.1.20.0070.01711.13
5.1.10.0040.03210.94
5.1.00.0030.02310.96
5.0.50.0040.01710.20
5.0.40.0000.02110.08
5.0.30.0030.03510.04
5.0.20.0030.01610.03
5.0.10.0050.01710.02
5.0.00.0020.02810.00
4.4.90.0020.0229.67
4.4.80.0000.0179.67
4.4.70.0020.0159.67
4.4.60.0030.0199.67
4.4.50.0020.0189.67
4.4.40.0020.0259.67
4.4.30.0000.0179.67
4.4.20.0030.0129.67
4.4.10.0000.0239.67
4.4.00.0000.0259.67
4.3.110.0020.0129.67
4.3.100.0020.0209.67
4.3.90.0020.0109.67
4.3.80.0000.0219.67
4.3.70.0030.0209.67
4.3.60.0000.0159.67
4.3.50.0000.0229.67
4.3.40.0020.0279.67
4.3.30.0020.0169.67
4.3.20.0030.0109.67
4.3.10.0020.0219.67
4.3.00.0020.0209.67

preferences:
36.54 ms | 401 KiB | 5 Q