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($doc); $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.60.0140.00718.70
8.3.50.0130.00816.68
8.3.40.0070.00718.82
8.3.30.0140.00419.02
8.3.20.0080.00018.85
8.3.10.0060.00320.73
8.3.00.0040.00417.75
8.2.180.0120.00917.13
8.2.170.0080.00822.96
8.2.160.0110.00422.52
8.2.150.0150.00024.18
8.2.140.0040.00724.66
8.2.130.0040.00426.16
8.2.120.0080.00020.07
8.2.110.0090.00022.36
8.2.100.0060.00618.09
8.2.90.0030.00519.34
8.2.80.0030.00618.18
8.2.70.0080.00017.88
8.2.60.0000.00817.93
8.2.50.0060.00318.07
8.2.40.0000.00818.05
8.2.30.0050.00518.36
8.2.20.0050.00317.86
8.2.10.0000.00817.95
8.2.00.0040.00417.95
8.1.280.0030.01325.92
8.1.270.0070.00023.99
8.1.260.0000.00726.35
8.1.250.0000.00728.09
8.1.240.0000.00822.73
8.1.230.0090.00321.15
8.1.220.0050.00318.77
8.1.210.0040.00419.02
8.1.200.0060.00317.48
8.1.190.0000.00817.79
8.1.180.0030.00518.10
8.1.170.0040.00419.02
8.1.160.0000.00719.13
8.1.150.0040.00418.82
8.1.140.0000.00717.68
8.1.130.0000.00817.96
8.1.120.0000.00817.57
8.1.110.0000.00717.53
8.1.100.0070.00017.61
8.1.90.0000.00717.70
8.1.80.0030.00517.59
8.1.70.0070.00017.54
8.1.60.0080.00017.70
8.1.50.0030.00617.62
8.1.40.0000.00717.66
8.1.30.0000.00817.83
8.1.20.0040.00417.86
8.1.10.0070.00017.86
8.1.00.0000.00817.66
8.0.300.0070.00320.02
8.0.290.0060.00317.13
8.0.280.0040.00418.59
8.0.270.0080.00017.32
8.0.260.0030.00317.05
8.0.250.0000.00817.15
8.0.240.0000.00817.24
8.0.230.0030.00317.23
8.0.220.0030.00317.19
8.0.210.0000.00717.15
8.0.200.0040.00417.25
8.0.190.0040.00417.06
8.0.180.0030.00617.09
8.0.170.0030.00617.03
8.0.160.0040.00417.00
8.0.150.0030.00517.03
8.0.140.0060.00517.12
8.0.130.0000.00513.54
8.0.120.0000.00817.05
8.0.110.0040.00416.91
8.0.100.0040.00417.13
8.0.90.0040.00417.04
8.0.80.0060.00917.05
8.0.70.0000.00717.05
8.0.60.0000.00717.06
8.0.50.0050.00317.04
8.0.30.0070.01317.11
8.0.20.0140.00917.51
8.0.10.0040.00417.20
8.0.00.0070.01016.97
7.4.330.0030.00315.01
7.4.320.0030.00316.76
7.4.300.0060.00016.90
7.4.290.0000.00716.74
7.4.280.0000.00816.75
7.4.270.0040.00416.77
7.4.260.0000.00513.48
7.4.250.0050.00216.63
7.4.240.0030.00516.82
7.4.230.0030.00316.90
7.4.220.0150.00316.80
7.4.210.0050.01116.75
7.4.200.0000.00716.79
7.4.190.0040.00416.91
7.4.160.0120.00616.89
7.4.150.0160.00317.18
7.4.140.0110.00917.31
7.4.130.0120.00916.73
7.4.120.0100.00716.77
7.4.110.0100.01016.62
7.4.100.0100.00716.87
7.4.90.0100.01416.59
7.4.80.0100.00718.80
7.4.70.0060.01316.54
7.4.60.0120.00416.88
7.4.50.0080.00016.91
7.4.40.0030.01222.27
7.4.30.0060.01016.87
7.4.10.0070.01015.15
7.4.00.0080.00814.94
7.3.330.0030.00313.40
7.3.320.0000.00613.12
7.3.310.0070.00016.57
7.3.300.0070.00016.51
7.3.290.0130.00616.47
7.3.280.0110.00716.56
7.3.270.0140.01017.40
7.3.260.0070.01018.24
7.3.250.0100.00716.71
7.3.240.0150.00916.44
7.3.230.0060.01016.81
7.3.210.0060.01016.65
7.3.200.0030.01319.39
7.3.190.0030.01416.73
7.3.180.0110.00716.74
7.3.170.0060.01016.77
7.3.160.0040.01216.71
7.3.130.0080.00814.85
7.3.120.0080.01014.82
7.3.110.0030.01614.93
7.3.100.0080.00815.08
7.3.90.0060.00915.01
7.3.80.0070.00714.68
7.3.70.0000.00915.03
7.3.60.0030.00714.84
7.3.50.0070.00714.80
7.3.40.0060.01214.68
7.3.30.0040.00414.82
7.3.20.0080.00816.45
7.3.10.0070.00716.70
7.3.00.0030.01216.72
7.2.330.0030.01416.84
7.2.320.0110.01116.50
7.2.310.0100.01216.79
7.2.300.0070.01016.71
7.2.290.0030.01316.91
7.2.260.0110.00315.21
7.2.250.0000.01414.84
7.2.240.0060.00815.11
7.2.230.0100.00315.04
7.2.220.0060.00915.16
7.2.210.0060.00614.65
7.2.200.0040.00815.13
7.2.190.0080.00414.94
7.2.180.0140.00314.82
7.2.170.0100.01015.17
7.2.160.0000.01515.06
7.2.150.0060.01016.82
7.2.140.0090.00916.95
7.2.130.0100.00516.95
7.2.120.0080.00616.72
7.2.110.0100.00617.08
7.2.100.0040.00716.93
7.2.90.0100.00517.07
7.2.80.0020.01117.08
7.2.70.0100.00816.93
7.2.60.0090.00616.89
7.2.50.0100.00316.97
7.2.40.0060.00616.97
7.2.30.0100.00616.99
7.2.20.0000.01316.94
7.2.10.0060.00417.03
7.2.00.0050.00917.81
7.1.330.0080.00415.77
7.1.320.0000.01615.94
7.1.310.0080.00415.86
7.1.300.0030.01015.93
7.1.290.0040.01115.98
7.1.280.0090.00415.93
7.1.270.0070.00715.95
7.1.260.0030.01615.81
7.1.250.0030.01015.68
7.1.240.0030.01015.71
7.1.230.0040.00815.75
7.1.220.0060.00815.76
7.1.210.0070.00515.74
7.1.200.0050.00715.92
7.1.190.0090.00515.64
7.1.180.0060.00715.90
7.1.170.0070.00315.88
7.1.160.0080.00615.82
7.1.150.0050.01015.86
7.1.140.0070.01015.88
7.1.130.0040.01015.90
7.1.120.0060.00615.86
7.1.110.0040.00915.77
7.1.100.0200.00614.26
7.1.90.0060.00515.80
7.1.80.0060.00615.94
7.1.70.0020.00916.19
7.1.60.0070.00917.06
7.1.50.0110.00616.04
7.1.40.0020.01315.84
7.1.30.0050.00515.78
7.1.20.0020.01115.91
7.1.10.0120.00615.80
7.1.00.0040.02318.13
7.0.330.0110.00215.27
7.0.320.0040.00815.35
7.0.310.0050.00615.29
7.0.300.0050.00815.38
7.0.290.0050.00515.40
7.0.280.0070.00115.38
7.0.270.0030.00915.43
7.0.260.0020.01015.32
7.0.250.0040.00715.28
7.0.240.0020.00815.47
7.0.230.0070.00615.61
7.0.220.0090.00215.40
7.0.210.0020.00815.33
7.0.200.0040.01015.85
7.0.190.0070.00915.45
7.0.180.0050.01115.52
7.0.170.0030.01015.42
7.0.160.0000.01015.17
7.0.150.0070.00115.48
7.0.140.0050.02917.72
7.0.130.0020.00915.31
7.0.120.0070.00715.44
7.0.110.0030.01015.28
7.0.100.0100.00615.35
7.0.90.0060.00615.34
7.0.80.0060.00415.56
7.0.70.0050.02517.42
7.0.60.0030.03417.61
7.0.50.0060.02917.77
7.0.40.0060.03115.81
7.0.30.0010.02915.72
7.0.20.0010.02315.63
7.0.10.0080.02515.69
7.0.00.0050.02415.67
5.6.400.0150.00014.55
5.6.390.0030.00614.46
5.6.380.0040.00814.42
5.6.370.0070.00514.27
5.6.360.0080.00514.35
5.6.350.0090.00314.49
5.6.340.0040.00814.22
5.6.330.0070.00814.33
5.6.320.0040.01014.57
5.6.310.0050.00914.24
5.6.300.0070.00814.34
5.6.290.0070.00614.20
5.6.280.0030.03016.66
5.6.270.0110.00514.24
5.6.260.0110.00814.46
5.6.250.0070.00514.21
5.6.240.0030.00814.33
5.6.230.0020.01014.50
5.6.220.0060.03216.52
5.6.210.0100.02216.58
5.6.200.0040.02216.62
5.6.190.0050.03316.42
5.6.180.0080.01916.63
5.6.170.0020.03516.66
5.6.160.0070.01916.72
5.6.150.0030.03716.70
5.6.140.0030.03416.59
5.6.130.0050.03416.61
5.6.120.0060.02916.56
5.6.110.0070.03416.55
5.6.100.0130.01816.58
5.6.90.0080.01916.62
5.6.80.0090.01716.29
5.6.70.0080.01816.55
5.6.60.0090.01616.53
5.6.50.0060.01516.30
5.6.40.0050.01616.39
5.6.30.0070.01516.60
5.6.20.0060.02816.45
5.6.10.0120.02716.32
5.6.00.0030.02516.21
5.5.380.0060.00512.78
5.5.370.0080.00512.80
5.5.360.0030.03115.25
5.5.350.0040.01815.38
5.5.340.0030.02115.46
5.5.330.0010.03215.50
5.5.320.0050.03015.52
5.5.310.0060.01615.51
5.5.300.0080.02915.52
5.5.290.0060.03115.56
5.5.280.0070.02815.45
5.5.270.0090.03015.40
5.5.260.0060.02315.55
5.5.250.0050.01915.36
5.5.240.0060.01715.33
5.5.230.0040.01915.21
5.5.220.0050.01715.29
5.5.210.0040.01515.29
5.5.200.0030.01515.25
5.5.190.0030.02315.17
5.5.180.0020.01715.13
5.5.170.0070.00112.69
5.5.160.0050.02215.17
5.5.150.0070.01815.23
5.5.140.0030.02015.21
5.5.130.0030.01915.32
5.5.120.0050.02015.32
5.5.110.0060.01215.24
5.5.100.0010.01815.26
5.5.90.0070.01415.29
5.5.80.0050.02015.19
5.5.70.0030.01815.13
5.5.60.0060.01515.16
5.5.50.0040.01915.27
5.5.40.0050.01815.28
5.5.30.0080.01215.27
5.5.20.0010.01715.22
5.5.10.0060.01315.22
5.5.00.0030.01515.24
5.4.450.0090.02914.35
5.4.440.0110.03014.35
5.4.430.0080.01914.41
5.4.420.0120.02014.34
5.4.410.0060.01714.36
5.4.400.0120.01714.29
5.4.390.0080.01514.29
5.4.380.0050.01514.26
5.4.370.0070.01514.36
5.4.360.0030.01414.24
5.4.350.0030.01314.30
5.4.340.0090.02214.35
5.4.330.0110.00211.84
5.4.320.0040.01714.29
5.4.310.0050.02014.30
5.4.300.0050.01514.29
5.4.290.0030.01914.30
5.4.280.0030.02114.28
5.4.270.0030.01514.30
5.4.260.0030.01614.24
5.4.250.0040.01314.29
5.4.240.0030.02014.36
5.4.230.0050.01414.29
5.4.220.0040.01614.30
5.4.210.0020.01614.29
5.4.200.0030.01614.29
5.4.190.0050.01514.24
5.4.180.0020.01914.29
5.4.170.0020.01714.29
5.4.160.0070.01114.29
5.4.150.0060.01314.18
5.4.140.0040.01513.39
5.4.130.0030.01613.39
5.4.120.0030.01513.39
5.4.110.0060.01413.38
5.4.100.0090.01213.38
5.4.90.0020.01413.38
5.4.80.0050.01213.37
5.4.70.0020.01513.40
5.4.60.0070.01213.36
5.4.50.0050.01613.34
5.4.40.0020.01613.35
5.4.30.0030.01313.39
5.4.20.0060.01313.36
5.4.10.0040.01813.38
5.4.00.0050.01313.22
5.3.290.0060.01512.79
5.3.280.0030.01412.80
5.3.270.0040.01512.75
5.3.260.0030.01712.78
5.3.250.0010.01612.73
5.3.240.0050.01512.74
5.3.230.0050.01312.78
5.3.220.0020.01412.75
5.3.210.0060.01312.77
5.3.200.0030.01512.80
5.3.190.0040.01412.76
5.3.180.0040.01412.77
5.3.170.0030.01312.75
5.3.160.0030.01712.72
5.3.150.0040.01712.80
5.3.140.0040.01512.72
5.3.130.0050.01312.79
5.3.120.0020.02112.77
5.3.110.0050.02812.79
5.3.100.0060.02212.61
5.3.90.0020.02012.58
5.3.80.0050.02812.59
5.3.70.0060.02512.62
5.3.60.0030.03212.56
5.3.50.0070.02412.52
5.3.40.0070.02312.52
5.3.30.0060.02312.56
5.3.20.0050.02412.51
5.3.10.0010.02612.49
5.3.00.0060.02812.49
5.2.170.0060.02511.76
5.2.160.0030.03411.76
5.2.150.0080.02711.76
5.2.140.0050.03211.76
5.2.130.0060.03111.76
5.2.120.0040.03011.76
5.2.110.0080.02011.76
5.2.100.0070.02811.76
5.2.90.0050.02811.76
5.2.80.0030.03311.76
5.2.70.0060.02711.76
5.2.60.0050.02611.76
5.2.50.0060.03511.76
5.2.40.0070.03011.76
5.2.30.0060.02811.76
5.2.20.0090.03211.76
5.2.10.0040.02011.76
5.2.00.0100.02511.76
5.1.60.0030.01711.76
5.1.50.0010.01711.76
5.1.40.0070.01811.76
5.1.30.0030.01311.76
5.1.20.0080.02811.76
5.1.10.0030.02511.76
5.1.00.0030.02111.76
5.0.50.0040.02211.76
5.0.40.0020.02211.76
5.0.30.0050.03011.76
5.0.20.0050.02311.76
5.0.10.0050.02011.76
5.0.00.0020.02011.76
4.4.90.0000.01911.76
4.4.80.0020.02011.76
4.4.70.0050.01811.76
4.4.60.0020.01911.76
4.4.50.0020.01711.76
4.4.40.0070.01211.76
4.4.30.0030.01711.76
4.4.20.0030.01111.76
4.4.10.0030.01811.76
4.4.00.0030.03011.76
4.3.110.0020.01911.76
4.3.100.0060.01511.76
4.3.90.0010.02011.76
4.3.80.0020.02511.76
4.3.70.0050.01711.76
4.3.60.0010.01511.76
4.3.50.0030.02011.76
4.3.40.0060.02511.76
4.3.30.0040.01811.76
4.3.20.0030.01811.76
4.3.10.0050.01811.76
4.3.00.0040.01711.76

preferences:
40.33 ms | 401 KiB | 5 Q