3v4l.org

run code in 300+ PHP versions simultaneously
<?php /** * What is the DOM Core Version is Supported by PHP DOM? */ $dom = new DOMDocument(); $dom->loadXML('<root/>'); $element = $dom->documentElement; function dom_list_feature(DOMDocument $dom, $feature, array $versions) { echo "$feature Feature is in PHP DOMDocument implementation:\n\n"; $found = []; foreach ($versions as $i => $version) { $result = $dom->implementation->hasFeature($feature, $version); if ($result) { $found[] = $version; } printf(" %d.) $feature %' -5s: %s\n", $i + 1, var_export($version, true), $result ? 'TRUE' : 'FALSE'); } $count = count($found); printf("\n%s %s versions found%s.\n\n", $count, $feature, $found ? ': ' . implode('; ', $found) : ''); } # Test DOMDocument in PHP Support for DOM-Core Feature # Document Object Model (DOM) <http://www.w3.org/DOM/DOMTR> dom_list_feature($dom, "Core", array('3.0', '2.0', '1.0', '', NULL)); # Test DOMDocument in PHP Support for DOM-XPath Feature # Document Object Model XPath <http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html> dom_list_feature($dom, "XPath", array('3.0', '2.0', '1.0', '', NULL));

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.0100.00616.88
8.3.60.0140.00716.72
8.3.50.0090.00821.99
8.3.40.0130.00318.89
8.3.30.0070.00719.34
8.3.20.0040.00420.54
8.3.10.0120.00623.78
8.3.00.0060.00317.88
8.2.180.0160.00618.79
8.2.170.0060.00922.96
8.2.160.0140.00020.51
8.2.150.0130.00024.18
8.2.140.0120.00624.66
8.2.130.0090.00926.16
8.2.120.0080.00022.38
8.2.110.0100.00722.35
8.2.100.0060.00620.73
8.2.90.0040.00419.88
8.2.80.0040.00419.53
8.2.70.0080.00018.16
8.2.60.0050.00318.13
8.2.50.0050.00318.10
8.2.40.0030.00918.34
8.2.30.0080.00018.33
8.2.20.0080.00018.10
8.2.10.0000.00817.93
8.2.00.0090.00018.02
8.1.280.0110.00725.92
8.1.270.0050.00224.66
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0100.00024.10
8.1.230.0040.00821.05
8.1.220.0040.00417.91
8.1.210.0060.00318.77
8.1.200.0060.00317.48
8.1.190.0000.00817.50
8.1.180.0000.00918.10
8.1.170.0040.00418.77
8.1.160.0000.00822.21
8.1.150.0000.00818.86
8.1.140.0040.00417.65
8.1.130.0000.00718.14
8.1.120.0000.00717.70
8.1.110.0050.00517.55
8.1.100.0000.00817.72
8.1.90.0000.00717.57
8.1.80.0030.00517.55
8.1.70.0080.00017.66
8.1.60.0060.00317.85
8.1.50.0030.00517.79
8.1.40.0050.00217.70
8.1.30.0000.00917.73
8.1.20.0040.00417.85
8.1.10.0050.00317.83
8.1.00.0030.00617.65
8.0.300.0030.00519.76
8.0.290.0080.00017.00
8.0.280.0030.00318.71
8.0.270.0000.00717.48
8.0.260.0070.00017.18
8.0.250.0030.00317.30
8.0.240.0000.00817.12
8.0.230.0050.00317.18
8.0.220.0030.00317.12
8.0.210.0000.00717.09
8.0.200.0000.00717.16
8.0.190.0040.00417.25
8.0.180.0040.00417.11
8.0.170.0000.00817.25
8.0.160.0000.00717.25
8.0.150.0000.00717.01
8.0.140.0000.00717.02
8.0.130.0000.00513.61
8.0.120.0030.00517.03
8.0.110.0040.00417.02
8.0.100.0030.00517.03
8.0.90.0030.00317.04
8.0.80.0090.00617.08
8.0.70.0040.00417.06
8.0.60.0000.00717.06
8.0.50.0000.00817.02
8.0.30.0100.01017.29
8.0.20.0120.00717.40
8.0.10.0030.00517.17
8.0.00.0100.00917.19
7.4.330.0030.00215.23
7.4.320.0030.00316.72
7.4.300.0000.00616.84
7.4.290.0030.00316.79
7.4.280.0020.00516.79
7.4.270.0000.00716.74
7.4.260.0000.00716.61
7.4.250.0070.00016.68
7.4.240.0050.00216.75
7.4.230.0070.00016.50
7.4.220.0110.00616.71
7.4.210.0050.00916.72
7.4.200.0050.00216.59
7.4.190.0030.00316.67
7.4.160.0060.01016.94
7.4.150.0080.00817.40
7.4.140.0110.01017.86
7.4.130.0090.00716.80
7.4.120.0100.01016.84
7.4.110.0080.00916.77
7.4.100.0040.01216.65
7.4.90.0030.01416.68
7.4.80.0030.01319.39
7.4.70.0140.00316.74
7.4.60.0080.00816.57
7.4.50.0020.00216.89
7.4.40.0030.00922.77
7.4.30.0090.00916.67
7.4.10.0070.01315.18
7.4.00.0070.01015.11
7.3.330.0000.00613.53
7.3.320.0000.00513.32
7.3.310.0000.00716.54
7.3.300.0070.00016.62
7.3.290.0140.00716.62
7.3.280.0100.00816.55
7.3.270.0110.00617.40
7.3.260.0070.01216.56
7.3.250.0130.00816.65
7.3.240.0110.00716.54
7.3.230.0070.01416.88
7.3.210.0090.00916.59
7.3.200.0140.01019.39
7.3.190.0150.00316.62
7.3.180.0130.00316.85
7.3.170.0100.00616.76
7.3.160.0160.00616.68
7.3.130.0100.00714.86
7.3.120.0120.00514.86
7.3.110.0100.00714.94
7.3.100.0050.01114.96
7.3.90.0070.00714.90
7.3.80.0060.00714.99
7.3.70.0040.00814.88
7.3.60.0060.00814.96
7.3.50.0050.00914.79
7.3.40.0070.00714.84
7.3.30.0070.00614.82
7.3.20.0050.00816.83
7.3.10.0070.00716.80
7.3.00.0060.00816.86
7.2.330.0060.01216.88
7.2.320.0100.00717.00
7.2.310.0070.01116.81
7.2.300.0100.00716.68
7.2.290.0130.00316.84
7.2.260.0040.01515.49
7.2.250.0070.01015.04
7.2.240.0070.01115.05
7.2.230.0050.01015.20
7.2.220.0100.00614.96
7.2.210.0060.01015.22
7.2.200.0040.01115.15
7.2.190.0050.00715.08
7.2.180.0060.00615.04
7.2.170.0050.00915.13
7.2.160.0090.00315.25
7.2.150.0120.00016.77
7.2.140.0100.00616.81
7.2.130.0030.01016.98
7.2.120.0120.00316.91
7.2.110.0090.00016.97
7.2.100.0090.00617.18
7.2.90.0000.01117.26
7.2.80.0060.00617.22
7.2.70.0090.00617.14
7.2.60.0030.01017.17
7.2.50.0000.01417.17
7.2.40.0110.00416.83
7.2.30.0050.00517.22
7.2.20.0090.00616.97
7.2.10.0050.00517.18
7.2.00.0070.00818.41
7.1.330.0060.01015.77
7.1.320.0050.01115.85
7.1.310.0050.01015.92
7.1.300.0030.00615.95
7.1.290.0070.00716.10
7.1.280.0080.00416.00
7.1.270.0070.00716.05
7.1.260.0090.00615.94
7.1.250.0030.00615.85
7.1.240.0090.00615.98
7.1.230.0090.00615.79
7.1.220.0000.01515.99
7.1.210.0030.00615.96
7.1.200.0070.00715.96
7.1.190.0030.01315.92
7.1.180.0060.00315.84
7.1.170.0070.01015.93
7.1.160.0040.00715.79
7.1.150.0060.00916.00
7.1.140.0000.00815.96
7.1.130.0000.00815.69
7.1.120.0040.00816.00
7.1.110.0060.00615.86
7.1.100.0080.00517.14
7.1.90.0040.00715.89
7.1.80.0070.00715.83
7.1.70.0080.00216.72
7.1.60.0060.00417.70
7.1.50.0060.01016.53
7.1.40.0090.00615.83
7.1.30.0030.00715.93
7.1.20.0030.01015.70
7.1.10.0090.00915.57
7.1.00.0030.04319.17
7.0.330.0060.01015.45
7.0.320.0000.01215.67
7.0.310.0070.00715.25
7.0.300.0070.00715.50
7.0.290.0060.00615.38
7.0.280.0100.00315.43
7.0.270.0000.01115.38
7.0.260.0080.00015.41
7.0.250.0000.01015.61
7.0.240.0090.00415.63
7.0.230.0090.00015.58
7.0.220.0000.01215.64
7.0.210.0060.00615.27
7.0.200.0080.00516.21
7.0.190.0070.00715.42
7.0.180.0060.00315.60
7.0.170.0040.01115.60
7.0.160.0060.01015.24
7.0.150.0070.00715.61
7.0.140.0100.03518.79
7.0.130.0030.00615.54
7.0.120.0040.00815.61
7.0.110.0030.01415.55
7.0.100.0100.04517.73
7.0.90.0050.04317.71
7.0.80.0220.02517.78
7.0.70.0070.03717.81
7.0.60.0090.02317.72
7.0.50.0180.03817.87
7.0.40.0100.03216.83
7.0.30.0080.04116.79
7.0.20.0000.03516.74
7.0.10.0080.03616.70
7.0.00.0080.04516.87
5.6.400.0080.00414.75
5.6.390.0100.00714.66
5.6.380.0000.01414.69
5.6.370.0070.00714.77
5.6.360.0030.01314.48
5.6.350.0040.01014.63
5.6.340.0100.00314.47
5.6.330.0040.00814.79
5.6.320.0030.00714.60
5.6.310.0120.00614.70
5.6.300.0060.00914.29
5.6.290.0030.01014.76
5.6.280.0030.03917.88
5.6.270.0090.00614.39
5.6.260.0070.00314.79
5.6.250.0050.04217.78
5.6.240.0050.04517.58
5.6.230.0090.04217.62
5.6.220.0070.04517.64
5.6.210.0080.03617.61
5.6.200.0080.04717.84
5.6.190.0110.03717.76
5.6.180.0070.02717.94
5.6.170.0060.03017.75
5.6.160.0060.02817.77
5.6.150.0050.03517.94
5.6.140.0090.04218.00
5.6.130.0050.04517.81
5.6.120.0120.02317.79
5.6.110.0030.03017.78
5.6.100.0110.03217.75
5.6.90.0020.02717.72
5.6.80.0070.02417.49
5.6.70.0050.02517.45
5.6.60.0070.02217.41
5.6.50.0080.02017.55
5.6.40.0050.02217.44
5.6.30.0030.02417.46
5.6.20.0060.02817.42
5.6.10.0050.03017.59
5.6.00.0080.02317.45
5.5.380.0090.04217.57
5.5.370.0060.04517.51
5.5.360.0080.03017.51
5.5.350.0020.04617.43
5.5.340.0130.03817.62
5.5.330.0050.04517.83
5.5.320.0050.02817.62
5.5.310.0080.03817.69
5.5.300.0050.03817.44
5.5.290.0120.03717.76
5.5.280.0020.02617.62
5.5.270.0080.04517.60
5.5.260.0080.04717.75
5.5.250.0070.03317.59
5.5.240.0100.01817.50
5.5.230.0020.02817.40
5.5.220.0050.02217.32
5.5.210.0090.01617.29
5.5.200.0020.02717.26
5.5.190.0020.02717.20
5.5.180.0060.02317.43
5.5.170.0070.00414.54
5.5.160.0050.02417.24
5.5.150.0100.02017.33
5.5.140.0050.02517.36
5.5.130.0060.02717.36
5.5.120.0050.02517.32
5.5.110.0070.02117.40
5.5.100.0010.02417.28
5.5.90.0050.02217.19
5.5.80.0050.02317.23
5.5.70.0020.02717.25
5.5.60.0060.02017.29
5.5.50.0090.01817.19
5.5.40.0060.02117.12
5.5.30.0030.01917.21
5.5.20.0040.02417.24
5.5.10.0070.01817.36
5.5.00.0080.02217.29
5.4.450.0080.02015.35
5.4.440.0020.03215.29
5.4.430.0050.04515.46
5.4.420.0100.03315.52
5.4.410.0030.02315.40
5.4.400.0030.02215.10
5.4.390.0030.02615.34
5.4.380.0020.01915.24
5.4.370.0030.02815.16
5.4.360.0020.02215.25
5.4.350.0050.02615.27
5.4.340.0020.02215.16
5.4.330.0030.01011.07
5.4.320.0050.02015.32
5.4.310.0030.02315.22
5.4.300.0030.02415.21
5.4.290.0030.01915.24
5.4.280.0060.02115.08
5.4.270.0030.02215.12
5.4.260.0020.02415.06
5.4.250.0000.02715.31
5.4.240.0060.02115.26
5.4.230.0070.01815.16
5.4.220.0050.02215.19
5.4.210.0030.02215.25
5.4.200.0050.02015.23
5.4.190.0030.02115.17
5.4.180.0030.01815.36
5.4.170.0080.01715.18
5.4.160.0030.02415.11
5.4.150.0040.02015.26
5.4.140.0020.02213.79
5.4.130.0070.01813.87
5.4.120.0030.01913.82
5.4.110.0030.02013.97
5.4.100.0050.02513.89
5.4.90.0040.02213.94
5.4.80.0030.02413.95
5.4.70.0060.03013.89
5.4.60.0020.04213.88
5.4.50.0050.03113.90
5.4.40.0060.03613.91
5.4.30.0050.03813.78
5.4.20.0060.02313.97
5.4.10.0060.02513.91
5.4.00.0020.02713.69
5.3.290.0030.02012.82
5.3.280.0020.02312.74
5.3.270.0100.01512.72
5.3.260.0040.02012.70
5.3.250.0010.02412.73
5.3.240.0030.02212.75
5.3.230.0080.01712.73
5.3.220.0100.02712.68
5.3.210.0030.03012.75
5.3.200.0040.02212.71
5.3.190.0030.02312.76
5.3.180.0030.01812.66
5.3.170.0030.02112.66
5.3.160.0030.03812.75
5.3.150.0070.04012.69
5.3.140.0070.02712.66
5.3.130.0040.03212.69
5.3.120.0050.02512.67
5.3.110.0060.04312.76
5.3.100.0070.02912.48
5.3.90.0030.04112.39
5.3.80.0030.02612.37
5.3.70.0030.03512.43
5.3.60.0030.02712.49
5.3.50.0000.02712.42
5.3.40.0030.03212.36
5.3.30.0060.01812.43
5.3.20.0060.03612.29
5.3.10.0030.04012.24
5.3.00.0030.03312.28
5.2.170.0070.06011.17
5.2.160.0030.03711.18
5.2.150.0030.03011.20
5.2.140.0030.05011.02
5.2.130.0070.04311.09
5.2.120.0030.05711.16
5.2.110.0000.03711.10
5.2.100.0100.05011.16
5.2.90.0070.03711.09
5.2.80.0070.06310.98
5.2.70.0070.03011.23
5.2.60.0070.06311.08
5.2.50.0000.03711.07
5.2.40.0030.06311.12
5.2.30.0030.05711.09
5.2.20.0070.03010.89
5.2.10.0030.05710.98
5.2.00.0070.05710.58
5.1.60.0170.04310.06
5.1.50.0070.0339.99
5.1.40.0100.04710.01
5.1.30.0070.03710.39
5.1.20.0030.04010.35
5.1.10.0070.04710.18
5.1.00.0000.05310.10
5.0.50.0030.0338.65
5.0.40.0000.0378.47
5.0.30.0000.0508.30
5.0.20.0070.0408.29
5.0.10.0030.0438.18
5.0.00.0070.0638.28
4.4.90.0030.0338.17
4.4.80.0030.0178.17
4.4.70.0070.0308.17
4.4.60.0030.0308.17
4.4.50.0000.0378.17
4.4.40.0000.0508.17
4.4.30.0070.0108.17
4.4.20.0000.0278.17
4.4.10.0000.0378.17
4.4.00.0000.0278.17
4.3.110.0000.0308.17
4.3.100.0030.0208.17
4.3.90.0000.0338.17
4.3.80.0030.0338.17
4.3.70.0030.0308.17
4.3.60.0000.0208.17
4.3.50.0000.0378.17
4.3.40.0030.0378.17
4.3.30.0030.0178.17
4.3.20.0030.0378.17
4.3.10.0030.0238.17
4.3.00.0030.0178.17

preferences:
46.21 ms | 401 KiB | 5 Q