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 = array(); 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.60.0140.00418.81
8.3.50.0080.01217.71
8.3.40.0140.00018.91
8.3.30.0110.00319.10
8.3.20.0040.00419.09
8.3.10.0060.00320.82
8.3.00.0130.00319.75
8.2.180.0070.01418.44
8.2.170.0120.00319.02
8.2.160.0090.00622.96
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0020.00526.16
8.2.120.0030.00621.19
8.2.110.0130.00522.12
8.2.100.0090.00318.16
8.2.90.0000.00818.26
8.2.80.0030.00617.97
8.2.70.0030.00518.18
8.2.60.0000.00819.46
8.2.50.0000.00918.07
8.2.40.0060.00318.47
8.2.30.0040.00418.39
8.2.20.0060.00319.75
8.2.10.0000.00717.93
8.2.00.0000.00718.05
8.1.280.0110.00425.92
8.1.270.0080.00024.66
8.1.260.0050.00326.35
8.1.250.0000.00728.09
8.1.240.0040.00724.02
8.1.230.0120.00021.09
8.1.220.0050.00317.80
8.1.210.0050.00319.13
8.1.200.0060.00317.47
8.1.190.0080.00017.47
8.1.180.0080.00018.10
8.1.170.0000.00819.07
8.1.160.0030.00619.09
8.1.150.0040.00418.73
8.1.140.0000.00717.61
8.1.130.0000.00717.96
8.1.120.0000.00717.63
8.1.110.0040.00417.68
8.1.100.0000.00717.58
8.1.90.0040.00417.70
8.1.80.0000.00817.73
8.1.70.0000.00717.62
8.1.60.0000.00817.82
8.1.50.0000.00717.71
8.1.40.0030.00517.80
8.1.30.0000.00817.76
8.1.20.0040.00417.88
8.1.10.0040.00417.75
8.1.00.0000.00817.78
8.0.300.0040.00420.13
8.0.290.0040.00417.00
8.0.280.0000.00718.55
8.0.270.0040.00417.42
8.0.260.0080.00017.09
8.0.250.0080.00017.23
8.0.240.0040.00417.22
8.0.230.0030.00417.20
8.0.220.0070.00017.05
8.0.210.0000.00717.02
8.0.200.0030.00517.25
8.0.190.0000.00817.13
8.0.180.0000.00717.22
8.0.170.0070.00317.16
8.0.160.0040.00417.22
8.0.150.0090.00017.06
8.0.140.0030.00617.06
8.0.130.0030.00313.51
8.0.120.0030.00517.19
8.0.110.0000.00717.01
8.0.100.0060.00317.08
8.0.90.0040.00417.12
8.0.80.0160.00617.20
8.0.70.0000.00717.10
8.0.60.0080.00017.19
8.0.50.0030.00517.09
8.0.30.0110.00817.31
8.0.20.0100.00917.32
8.0.10.0040.00417.33
8.0.00.0110.01017.21
7.4.330.0000.00513.29
7.4.320.0000.00716.84
7.4.300.0000.00716.72
7.4.290.0050.00216.82
7.4.280.0100.00016.85
7.4.270.0040.00416.88
7.4.260.0030.00313.45
7.4.250.0030.00616.66
7.4.240.0000.00716.86
7.4.230.0040.00416.82
7.4.220.0090.00916.84
7.4.210.0100.00716.80
7.4.200.0000.00816.63
7.4.190.0000.00716.63
7.4.160.0100.00516.78
7.4.150.0030.01616.66
7.4.140.0070.01016.66
7.4.130.0060.01516.58
7.4.120.0140.00516.66
7.4.110.0120.00616.80
7.4.100.0070.01416.74
7.4.90.0070.01116.86
7.4.80.0120.00919.39
7.4.70.0140.00316.52
7.4.60.0030.01416.70
7.4.50.0040.00416.66
7.4.40.0070.01016.88
7.4.30.0140.00716.67
7.4.00.0070.01115.04
7.3.330.0070.00013.52
7.3.320.0030.00313.41
7.3.310.0030.00316.63
7.3.300.0030.00316.47
7.3.290.0000.01716.53
7.3.280.0030.01616.58
7.3.270.0130.00416.75
7.3.260.0090.01316.60
7.3.250.0090.00816.69
7.3.240.0120.00916.48
7.3.230.0080.01116.62
7.3.210.0110.00716.61
7.3.200.0120.00916.56
7.3.190.0070.01016.64
7.3.180.0060.01016.86
7.3.170.0080.00816.67
7.3.160.0060.01216.76
7.3.120.0040.01514.86
7.3.110.0060.01315.07
7.3.100.0090.00615.05
7.3.90.0040.01414.92
7.3.80.0080.00414.85
7.3.70.0060.00915.02
7.3.60.0030.00614.86
7.3.50.0000.01714.91
7.3.40.0030.01314.91
7.3.30.0030.01015.04
7.3.20.0090.00616.94
7.3.10.0050.01216.82
7.3.00.0040.01316.61
7.2.330.0070.01016.84
7.2.320.0120.01016.91
7.2.310.0140.01116.97
7.2.300.0070.01016.95
7.2.290.0130.00316.81
7.2.240.0090.00914.87
7.2.230.0110.00415.45
7.2.220.0090.00615.07
7.2.210.0030.01015.43
7.2.200.0040.01515.43
7.2.190.0000.01515.13
7.2.180.0080.00815.15
7.2.170.0120.00615.14
7.2.160.0070.00715.07
7.2.150.0110.00317.04
7.2.140.0000.01417.18
7.2.130.0050.01016.92
7.2.120.0070.00817.08
7.2.110.0040.01116.98
7.2.100.0000.01416.80
7.2.90.0070.00917.01
7.2.80.0020.01116.92
7.2.70.0090.01117.03
7.2.60.0050.01017.00
7.2.50.0070.00716.86
7.2.40.0080.00916.96
7.2.30.0020.01417.02
7.2.20.0080.00516.89
7.2.10.0020.01417.04
7.2.00.0040.00917.79
7.1.330.0170.00015.97
7.1.320.0040.00815.92
7.1.310.0070.01015.84
7.1.300.0080.00015.86
7.1.290.0140.00315.95
7.1.280.0070.00715.83
7.1.270.0000.01115.71
7.1.260.0060.01215.88
7.1.250.0080.00616.01
7.1.200.0100.01015.75
7.1.100.0070.00718.13
7.1.70.0100.00017.23
7.1.60.0110.01419.40
7.1.50.0060.01516.76
7.1.00.0070.03022.44
7.0.200.0130.00715.00
7.0.140.0100.07022.18
7.0.120.0070.06722.12
7.0.60.0130.07320.11
7.0.50.0130.07318.09
7.0.40.0070.04320.23
7.0.30.0570.06720.17
7.0.20.0270.05320.20
7.0.10.0070.05320.22
7.0.00.0000.04720.29
5.6.280.0000.07321.18
5.6.210.0200.05320.71
5.6.200.0100.08018.36
5.6.190.0030.04720.63
5.6.180.3430.04720.55
5.6.170.0230.05320.79
5.6.160.0130.07020.64
5.6.150.0130.07718.35
5.6.140.0100.05318.26
5.6.130.0070.08318.39
5.6.120.0170.07721.13
5.6.110.0230.06321.17
5.6.100.0030.05321.16
5.6.90.0100.07721.11
5.6.80.0130.07720.49
5.6.70.4470.04020.48
5.5.350.0070.06720.46
5.5.340.0070.03718.04
5.5.330.0100.03320.36
5.5.320.0270.05720.37
5.5.310.0400.05720.34
5.5.300.0100.04018.20
5.5.290.0070.07318.18
5.5.280.0100.08021.02
5.5.270.0030.07720.86
5.5.260.0100.08021.09
5.5.250.0000.05320.80
5.5.240.0200.08020.16
5.4.450.0030.08019.39
5.4.440.0100.08019.60
5.4.430.0070.07319.52
5.4.420.0100.07719.60
5.4.410.0100.05319.35
5.4.400.0100.06018.95
5.4.390.0030.08019.29
5.4.380.0030.04719.23
5.4.370.0030.04318.94
5.4.360.0230.06019.13
5.4.350.0030.07719.28
5.4.340.0100.07319.44
5.4.320.0070.03719.06
5.4.310.0070.05319.45
5.4.300.0130.07019.07
5.4.290.0030.06319.06
5.4.280.0100.05019.35
5.4.270.0070.06719.34
5.4.260.0130.07318.92
5.4.250.0100.04019.33
5.4.240.0070.03719.07
5.4.230.0030.04019.14
5.4.220.0100.04718.92
5.4.210.0030.04319.18
5.4.200.0070.05319.19
5.4.190.0130.06719.14
5.4.180.0070.07019.05
5.4.170.0100.07719.34
5.4.160.0070.08019.13
5.4.150.0100.07719.25
5.4.140.0000.06716.45
5.4.130.0070.04716.66
5.4.120.0030.06016.58
5.4.110.0030.07716.52
5.4.100.0130.06716.58
5.4.90.0000.07016.42
5.4.80.0030.04016.40
5.4.70.0030.03716.60
5.4.60.0100.05016.45
5.4.50.0070.05716.77
5.4.40.0070.04716.54
5.4.30.0070.05016.52
5.4.20.0070.06316.59
5.4.10.0000.05016.58
5.4.00.0170.05716.04
5.3.290.0070.06014.90
5.3.280.0030.05014.72
5.3.270.0000.05014.73
5.3.260.0100.07314.73
5.3.250.0100.06314.74
5.3.240.0030.07014.71
5.3.230.0100.05714.80
5.3.220.0070.08014.66
5.3.210.0130.07014.71
5.3.200.0070.08014.76
5.3.190.0070.08014.80
5.3.180.0070.07314.67
5.3.170.0030.04014.71
5.3.160.0070.07714.67
5.3.150.0100.08014.77
5.3.140.0000.07314.79
5.3.130.0070.04714.78
5.3.120.0000.08714.63
5.3.110.0030.07314.77
5.3.100.0070.07314.21
5.3.90.0070.07714.11
5.3.80.0070.07714.21
5.3.70.0100.07014.14
5.3.60.0200.06314.03
5.3.50.0070.07314.14
5.3.40.0100.07314.08
5.3.30.0070.06714.05
5.3.20.0070.07013.74
5.3.10.0070.03313.88
5.3.00.0070.03313.86
5.2.170.0070.04011.27
5.2.160.0100.05711.28
5.2.150.0100.04711.17
5.2.140.0030.03311.17
5.2.130.0070.06311.25
5.2.120.0030.05011.14
5.2.110.0070.02311.35
5.2.100.0070.02311.14
5.2.90.0070.03011.22
5.2.80.0000.03711.15
5.2.70.0070.02311.26
5.2.60.0030.02711.20
5.2.50.0030.03011.07
5.2.40.0070.02711.10
5.2.30.0000.03010.97
5.2.20.0070.02311.07
5.2.10.0000.03011.09
5.2.00.0000.03010.95
5.1.60.0030.02310.14
5.1.50.0000.02710.22
5.1.40.0000.02710.04
5.1.30.0000.02710.50
5.1.20.0000.02710.45
5.1.10.0030.02310.22
5.1.00.0000.02710.21
5.0.50.0000.0208.52
5.0.40.0000.0208.47
5.0.30.0000.0308.13
5.0.20.0000.0208.11
5.0.10.0000.0208.16
5.0.00.0070.0278.23
4.4.90.0030.0137.87
4.4.80.0000.0177.88
4.4.70.0000.0177.90
4.4.60.0030.0137.90
4.4.50.0000.0137.91
4.4.40.0030.0237.92
4.4.30.0000.0177.92
4.4.20.0030.0137.96
4.4.10.0030.0137.97
4.4.00.0000.0237.97
4.3.110.0000.0137.97
4.3.100.0000.0137.97
4.3.90.0000.0137.97
4.3.80.0030.0207.97
4.3.70.0030.0137.97
4.3.60.0030.0137.97
4.3.50.0000.0207.97
4.3.40.0000.0237.97
4.3.30.0000.0137.97
4.3.20.0000.0177.97
4.3.10.0000.0177.97
4.3.00.0000.0137.97

preferences:
48.8 ms | 401 KiB | 5 Q