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'); $doc = $dom->importNode($doc, true); $doc = $dom->appendChild($doc); $xpath = new DOMXPath($dom); $res1 = $xpath->query('//root/item[./@id="images"]'); var_dump($doc); $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.40.0160.00619.10
8.3.30.0120.00318.84
8.3.20.0030.00618.99
8.3.10.0040.00420.61
8.3.00.0090.00017.84
8.2.170.0120.00322.96
8.2.160.0090.00622.58
8.2.150.0060.00324.18
8.2.140.0000.00824.66
8.2.130.0070.00026.16
8.2.120.0080.00020.20
8.2.110.0070.00320.72
8.2.100.0030.00918.05
8.2.90.0030.00519.61
8.2.80.0000.00917.97
8.2.70.0040.00417.75
8.2.60.0080.00018.29
8.2.50.0040.00418.07
8.2.40.0000.00818.41
8.2.30.0000.00818.26
8.2.20.0030.00617.95
8.2.10.0000.00818.10
8.2.00.0050.00318.00
8.1.270.0080.00024.66
8.1.260.0000.00926.35
8.1.250.0090.00028.09
8.1.240.0000.01022.57
8.1.230.0090.00318.01
8.1.220.0040.00418.04
8.1.210.0040.00418.77
8.1.200.0070.00317.60
8.1.190.0040.00417.90
8.1.180.0040.00418.10
8.1.170.0060.00319.41
8.1.160.0050.00319.25
8.1.150.0080.00018.90
8.1.140.0040.00417.77
8.1.130.0000.00818.12
8.1.120.0000.00717.83
8.1.110.0040.00417.65
8.1.100.0000.00817.85
8.1.90.0040.00417.59
8.1.80.0000.00817.57
8.1.70.0000.00717.81
8.1.60.0030.00617.77
8.1.50.0040.00417.69
8.1.40.0000.00817.67
8.1.30.0000.00818.04
8.1.20.0000.00918.02
8.1.10.0000.00817.72
8.1.00.0000.00817.92
8.0.300.0060.00318.77
8.0.290.0030.00517.00
8.0.280.0030.00318.60
8.0.270.0080.00017.59
8.0.260.0030.00317.16
8.0.250.0040.00417.05
8.0.240.0000.00917.36
8.0.230.0050.00217.33
8.0.220.0000.00717.01
8.0.210.0040.00417.30
8.0.200.0030.00317.31
8.0.190.0080.00017.06
8.0.180.0040.00417.21
8.0.170.0060.00317.09
8.0.160.0040.00417.05
8.0.150.0030.00617.20
8.0.140.0000.00917.04
8.0.130.0060.00013.63
8.0.120.0000.00817.25
8.0.110.0000.00817.04
8.0.100.0000.00817.18
8.0.90.0000.00717.32
8.0.80.0060.01717.24
8.0.70.0040.00417.11
8.0.60.0000.00917.19
8.0.50.0040.00416.99
8.0.30.0080.01817.32
8.0.20.0080.01317.51
8.0.10.0000.00717.32
8.0.00.0070.01116.98
7.4.330.0050.00013.40
7.4.320.0070.00016.98
7.4.300.0000.00716.72
7.4.290.0030.00316.85
7.4.280.0030.00616.95
7.4.270.0070.00016.73
7.4.260.0030.00313.59
7.4.250.0000.00916.85
7.4.240.0030.00316.89
7.4.230.0000.00716.83
7.4.220.0090.01216.81
7.4.210.0080.00816.91
7.4.200.0080.00016.77
7.4.190.0030.00316.86
7.4.160.0100.00616.57
7.4.150.0090.00916.62
7.4.140.0130.00916.71
7.4.130.0100.00916.89
7.4.120.0090.01016.69
7.4.110.0100.01316.68
7.4.100.0110.00716.76
7.4.90.0120.00616.74
7.4.80.0140.00916.96
7.4.70.0140.01016.83
7.4.60.0070.01316.70
7.4.50.0040.00416.78
7.4.40.0060.00916.66
7.4.30.0170.00016.74
7.4.10.0130.00715.09
7.4.00.0050.01115.22
7.3.330.0030.00313.49
7.3.320.0000.00613.19
7.3.310.0070.00016.52
7.3.300.0050.00216.49
7.3.290.0040.01716.48
7.3.280.0100.00916.49
7.3.270.0140.00716.84
7.3.260.0110.01016.50
7.3.250.0150.01016.74
7.3.240.0170.00016.56
7.3.230.0050.01416.86
7.3.210.0100.01016.71
7.3.200.0110.01019.39
7.3.190.0150.00716.40
7.3.180.0120.00916.95
7.3.170.0080.00816.61
7.3.160.0050.01116.66
7.3.130.0030.01515.15
7.3.120.0080.01014.85
7.3.110.0100.00715.10
7.3.100.0030.01014.84
7.3.90.0090.00614.84
7.3.80.0060.00315.02
7.3.70.0080.00315.00
7.3.60.0080.00814.97
7.3.50.0060.00914.86
7.3.40.0000.01214.97
7.3.30.0040.00814.88
7.3.20.0060.00916.75
7.3.10.0090.00516.54
7.3.00.0070.00416.75
7.2.330.0130.00716.72
7.2.320.0120.01216.54
7.2.310.0150.01016.79
7.2.300.0000.01717.01
7.2.290.0110.00816.75
7.2.260.0060.00914.98
7.2.250.0060.01115.20
7.2.240.0100.00715.39
7.2.230.0060.01015.11
7.2.220.0030.01015.25
7.2.210.0030.01014.70
7.2.200.0090.00615.14
7.2.190.0080.00315.26
7.2.180.0030.01415.09
7.2.170.0120.00315.14
7.2.160.0070.01015.01
7.2.150.0080.00816.95
7.2.140.0140.00316.82
7.2.130.0070.01116.79
7.2.120.0020.01116.95
7.2.110.0030.00616.89
7.2.100.0020.01316.83
7.2.90.0060.00916.94
7.2.80.0040.00916.96
7.2.70.0080.00817.07
7.2.60.0030.01216.97
7.2.50.0080.00616.89
7.2.40.0030.01017.05
7.2.30.0070.00716.95
7.2.20.0100.01216.87
7.2.10.0110.00617.06
7.2.00.0050.00917.77
7.1.330.0000.01615.91
7.1.320.0110.00415.73
7.1.310.0060.00615.84
7.1.300.0030.00616.01
7.1.290.0090.00615.86
7.1.280.0070.01015.80
7.1.270.0030.00915.79
7.1.260.0080.00415.98
7.1.250.0030.00915.82
7.1.240.0040.01115.77
7.1.230.0130.00315.90
7.1.220.0070.01015.92
7.1.210.0060.00615.90
7.1.200.0020.00915.97
7.1.190.0070.00715.90
7.1.180.0160.00016.09
7.1.170.0040.00615.98
7.1.160.0030.00616.07
7.1.150.0090.00615.95
7.1.140.0000.01515.79
7.1.130.0110.00416.02
7.1.120.0080.00815.96
7.1.110.0030.01015.99
7.1.100.0040.00816.88
7.1.90.0050.00515.78
7.1.80.0030.01015.91
7.1.70.0040.00716.63
7.1.60.0090.00817.73
7.1.50.0090.01225.50
7.1.40.0030.00615.86
7.1.30.0000.00915.77
7.1.20.0070.01015.78
7.1.10.0080.00815.88
7.1.00.0100.03319.27
7.0.330.0060.00915.61
7.0.320.0040.01115.70
7.0.310.0060.00615.52
7.0.300.0090.00015.46
7.0.290.0060.00615.54
7.0.280.0040.01115.43
7.0.270.0060.00315.28
7.0.260.0030.00615.75
7.0.250.0040.00715.44
7.0.240.0030.01515.60
7.0.230.0030.01015.59
7.0.220.0040.01115.67
7.0.210.0070.00415.48
7.0.200.0140.00714.97
7.0.190.0110.00315.62
7.0.180.0060.00615.60
7.0.170.0060.00315.65
7.0.160.0150.00015.67
7.0.150.0070.00715.46
7.0.140.0070.03818.76
7.0.130.0090.00015.62
7.0.120.0030.04118.88
7.0.110.0090.00915.64
7.0.100.0040.01115.28
7.0.90.0100.00315.42
7.0.80.0100.00315.70
7.0.70.0090.00615.54
7.0.60.0080.03417.75
7.0.50.0030.02416.86
7.0.40.0050.02715.78
7.0.30.0030.04615.88
7.0.20.0070.04715.79
7.0.10.0100.03315.79
7.0.00.0080.03815.75
5.6.400.0070.00714.67
5.6.390.0070.01014.55
5.6.380.0070.01014.27
5.6.370.0080.00414.46
5.6.360.0070.00314.60
5.6.350.0060.00614.52
5.6.340.0060.00614.48
5.6.330.0000.00914.50
5.6.320.0140.00014.62
5.6.310.0040.00414.77
5.6.300.0060.00614.67
5.6.290.0070.00714.51
5.6.280.0030.03917.68
5.6.270.0060.00314.46
5.6.260.0090.00614.30
5.6.250.0040.01114.31
5.6.240.0000.01514.29
5.6.230.0000.01014.18
5.6.220.0120.00314.29
5.6.210.0020.04917.50
5.6.200.0070.02116.30
5.6.190.0070.04116.44
5.6.180.0070.04516.26
5.6.170.0090.04116.41
5.6.160.0020.03716.45
5.6.150.0100.03516.51
5.6.140.0060.04316.47
5.6.130.0080.04116.44
5.6.120.0080.04516.58
5.6.110.0100.02816.42
5.6.100.0050.02816.57
5.6.90.0050.04216.33
5.6.80.0030.04816.06
5.6.70.0030.04416.15
5.6.60.0040.03016.03
5.6.50.0030.04616.01
5.6.40.0080.04216.06
5.6.30.0100.03816.09
5.6.20.0090.02716.07
5.6.10.0070.03516.12
5.6.00.0070.04116.03
5.5.380.0070.00714.41
5.5.370.0030.01114.61
5.5.360.0110.00014.34
5.5.350.0120.03817.63
5.5.340.0070.04216.34
5.5.330.0110.02316.13
5.5.320.0080.04216.31
5.5.310.0020.03316.31
5.5.300.0090.02916.37
5.5.290.0080.04716.25
5.5.280.0070.03816.26
5.5.270.0030.02716.27
5.5.260.0080.02716.33
5.5.250.0130.03815.93
5.5.240.0070.04216.00
5.5.230.0030.04416.04
5.5.220.0050.03115.95
5.5.210.0050.04515.96
5.5.200.0060.02815.93
5.5.190.0100.02215.76
5.5.180.0070.03916.01
5.5.170.0040.00814.50
5.5.160.0030.04016.00
5.5.150.0070.04015.79
5.5.140.0070.04415.91
5.5.130.0040.04615.91
5.5.120.0030.04016.05
5.5.110.0090.02915.90
5.5.100.0070.02515.97
5.5.90.0080.04215.88
5.5.80.0050.04315.93
5.5.70.0100.02215.86
5.5.60.0140.03515.85
5.5.50.0120.03715.79
5.5.40.0030.04515.77
5.5.30.0080.04215.66
5.5.20.0070.04515.98
5.5.10.0070.03015.79
5.5.00.0050.03415.63
5.4.450.0090.04115.94
5.4.440.0030.04716.06
5.4.430.0120.01716.01
5.4.420.0030.03016.07
5.4.410.0050.04415.98
5.4.400.0030.04815.96
5.4.390.0110.03615.85
5.4.380.0050.04215.80
5.4.370.0040.04415.87
5.4.360.0130.03415.89
5.4.350.0020.04415.89
5.4.340.0030.03515.85
5.4.330.0030.00912.56
5.4.320.0070.02515.81
5.4.310.0080.03515.90
5.4.300.0020.03815.90
5.4.290.0030.04315.88
5.4.280.0030.02715.97
5.4.270.0110.03515.80
5.4.260.0050.03215.81
5.4.250.0060.02315.85
5.4.240.0040.03915.90
5.4.230.0040.03315.88
5.4.220.0050.04215.88
5.4.210.0090.03715.80
5.4.200.0030.03015.89
5.4.190.0070.04015.88
5.4.180.0060.03715.93
5.4.170.0080.04215.84
5.4.160.0090.04015.91
5.4.150.0050.04115.88
5.4.140.0070.03414.50
5.4.130.0070.04014.57
5.4.120.0030.03914.48
5.4.110.0020.02914.60
5.4.100.0080.04014.62
5.4.90.0050.02714.55
5.4.80.0050.01814.56
5.4.70.0070.03814.59
5.4.60.0060.03014.54
5.4.50.0030.04314.60
5.4.40.0030.04214.58
5.4.30.0050.02614.52
5.4.20.0020.03414.63
5.4.10.0140.03314.51
5.4.00.0070.03914.22
5.3.290.0060.03313.66
5.3.280.0080.03313.68
5.3.270.0030.04513.68
5.3.260.0090.02813.59
5.3.250.0100.03513.64
5.3.240.0030.02713.66
5.3.230.0040.03713.68
5.3.220.0060.03013.63
5.3.210.0130.03013.67
5.3.200.0100.03313.63
5.3.190.0050.03213.65
5.3.180.0070.03013.61
5.3.170.0030.02513.64
5.3.160.0010.03513.65
5.3.150.0090.03513.66
5.3.140.0030.03313.66
5.3.130.0000.03113.64
5.3.120.0070.03913.66
5.3.110.0080.03913.65
5.3.100.0050.02513.42
5.3.90.0030.03613.39
5.3.80.0050.02713.35
5.3.70.0020.03913.40
5.3.60.0080.02813.30
5.3.50.0080.03813.30
5.3.40.0070.03813.37
5.3.30.0040.03713.35
5.3.20.0050.03713.12
5.3.10.0110.03013.17
5.3.00.0080.02713.16
5.2.170.0030.06711.41
5.2.160.0100.04311.27
5.2.150.0000.06711.33
5.2.140.0070.06011.27
5.2.130.0030.05311.40
5.2.120.0030.05311.22
5.2.110.0130.04311.40
5.2.100.0100.05311.21
5.2.90.0030.06311.14
5.2.80.0100.04711.34
5.2.70.0070.06711.16
5.2.60.0000.05311.23
5.2.50.0100.03311.20
5.2.40.0030.04011.13
5.2.30.0030.03711.28
5.2.20.0030.04011.07
5.2.10.0000.04310.97
5.2.00.0100.03311.02
5.1.60.0070.03710.24
5.1.50.0030.03010.22
5.1.40.0070.02710.18
5.1.30.0000.03310.54
5.1.20.0070.02710.53
5.1.10.0130.01710.32
5.1.00.0070.02710.31
5.0.50.0100.0408.72
5.0.40.0030.0478.63
5.0.30.0000.0338.41
5.0.20.0070.0408.55
5.0.10.0030.0408.41
5.0.00.0030.0678.41
4.4.90.0070.0377.90
4.4.80.0030.0337.90
4.4.70.0000.0337.90
4.4.60.0030.0177.90
4.4.50.0000.0277.90
4.4.40.0000.0337.90
4.4.30.0030.0277.90
4.4.20.0000.0177.90
4.4.10.0000.0207.90
4.4.00.0070.0437.90
4.3.110.0000.0407.90
4.3.100.0000.0177.90
4.3.90.0000.0377.90
4.3.80.0000.0507.90
4.3.70.0000.0207.90
4.3.60.0000.0207.90
4.3.50.0000.0207.90
4.3.40.0030.0307.90
4.3.30.0000.0407.90
4.3.20.0030.0337.90
4.3.10.0030.0337.90
4.3.00.0030.0277.90

preferences:
46.22 ms | 400 KiB | 5 Q