3v4l.org

run code in 300+ PHP versions simultaneously
<?php $document = new DOMDocument(); $document->appendChild($document->createElement('foo')); // add attribute in namespace $document->documentElement->setAttributeNS('urn:foo', 'f:foo', '...'); echo $document->saveXML(); // fetch the namespace definition node $namespace = $document->documentElement->getAttributeNodeNS('http://www.w3.org/2000/xmlns/', 'f'); var_dump($namespace); // it should be an attribute node but isn't $document->documentElement->removeAttributeNode($namespace);

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.0130.00318.43
8.3.50.0150.00618.26
8.3.40.0090.00618.73
8.3.30.0090.00618.77
8.3.20.0050.00321.01
8.3.10.0050.00323.79
8.3.00.0000.00822.69
8.2.180.0110.00718.54
8.2.170.0120.00322.96
8.2.160.0110.00422.33
8.2.150.0090.00024.18
8.2.140.0100.00024.66
8.2.130.0080.00026.16
8.2.120.0080.00021.25
8.2.110.0060.00322.36
8.2.100.0040.00817.95
8.2.90.0080.00017.88
8.2.80.0050.00318.18
8.2.70.0000.00918.05
8.2.60.0040.00418.29
8.2.50.0040.00418.10
8.2.40.0040.00421.39
8.2.30.0030.00619.35
8.2.20.0050.00318.15
8.2.10.0000.00819.43
8.2.00.0000.00718.25
8.1.280.0090.00625.92
8.1.270.0050.00320.79
8.1.260.0040.00426.35
8.1.250.0050.00328.09
8.1.240.0060.00324.14
8.1.230.0060.00621.10
8.1.220.0000.00817.90
8.1.210.0050.00318.77
8.1.200.0030.00617.48
8.1.190.0080.00017.48
8.1.180.0060.00318.10
8.1.170.0060.00318.77
8.1.160.0040.00419.00
8.1.150.0000.00919.09
8.1.140.0000.00720.50
8.1.130.0000.00920.37
8.1.120.0040.00417.57
8.1.110.0090.00017.62
8.1.100.0000.00717.62
8.1.90.0040.00417.61
8.1.80.0050.00217.51
8.1.70.0040.00417.53
8.1.60.0040.00417.71
8.1.50.0000.00817.75
8.1.40.0040.00417.78
8.1.30.0050.00317.86
8.1.20.0000.00917.82
8.1.10.0040.00417.83
8.1.00.0040.00417.77
8.0.300.0040.00420.34
8.0.290.0080.00317.00
8.0.280.0050.00218.55
8.0.270.0000.00817.44
8.0.260.0000.00620.17
8.0.250.0040.00717.21
8.0.240.0000.00717.13
8.0.230.0000.00717.13
8.0.220.0030.00317.03
8.0.210.0040.00716.97
8.0.200.0000.00717.13
8.0.190.0040.00417.06
8.0.180.0050.00317.12
8.0.170.0030.00617.01
8.0.160.0070.00017.00
8.0.150.0000.00717.03
8.0.140.0000.00717.07
8.0.130.0030.00313.52
8.0.120.0000.00817.07
8.0.110.0000.00717.10
8.0.100.0040.00417.11
8.0.90.0000.00716.93
8.0.80.0060.01117.01
8.0.70.0080.00017.11
8.0.60.0040.00416.94
8.0.50.0080.00017.08
8.0.30.0150.01017.19
8.0.20.0190.00617.35
8.0.10.0040.00417.29
8.0.00.0110.01316.97
7.4.330.0000.00615.55
7.4.320.0030.00316.56
7.4.300.0000.00616.61
7.4.290.0030.00316.58
7.4.280.0050.00316.84
7.4.270.0040.00416.71
7.4.260.0070.00016.79
7.4.250.0040.00416.80
7.4.240.0000.00716.67
7.4.230.0070.00016.79
7.4.220.0040.00416.71
7.4.210.0020.01216.70
7.4.200.0040.00416.59
7.4.160.0100.00616.65
7.4.140.0110.00717.86
7.4.130.0060.01516.77
7.4.120.0100.01016.79
7.4.110.0070.01116.79
7.4.100.0150.00416.75
7.4.90.0090.00916.68
7.4.80.0110.01419.39
7.4.70.0120.00916.72
7.4.60.0080.00816.77
7.4.50.0060.00616.71
7.4.40.0140.00316.56
7.4.00.0100.00814.94
7.3.330.0040.00413.36
7.3.320.0030.00313.18
7.3.310.0000.00716.40
7.3.300.0070.00016.31
7.3.290.0090.00616.44
7.3.280.0090.00816.45
7.3.260.0120.00716.55
7.3.240.0090.01016.60
7.3.230.0040.01416.62
7.3.210.0110.00716.55
7.3.200.0060.01216.58
7.3.190.0150.00916.39
7.3.180.0100.00716.55
7.3.170.0090.00916.57
7.3.160.0100.01016.59
7.3.120.0120.00614.88
7.3.110.0030.01315.02
7.3.100.0040.01014.91
7.3.90.0110.00715.19
7.3.80.0000.01014.70
7.3.70.0040.00414.84
7.3.60.0070.00714.86
7.3.50.0040.00814.48
7.3.40.0100.00614.73
7.3.30.0150.00514.71
7.3.20.0330.00515.85
7.3.10.0340.00715.65
7.3.00.0300.00515.68
7.2.330.0030.01416.64
7.2.320.0100.01516.99
7.2.310.0130.00416.85
7.2.300.0140.00316.89
7.2.290.0110.00716.71
7.2.250.0040.01515.04
7.2.240.0030.01714.72
7.2.230.0030.01215.23
7.2.220.0030.01215.13
7.2.210.0040.00815.00
7.2.200.0040.01115.25
7.2.190.0030.01315.11
7.2.180.0080.00415.14
7.2.170.0040.01215.20
7.2.160.0140.00015.00
7.2.150.0510.01015.13
7.2.140.0470.00415.01
7.2.130.0440.00315.23
7.2.120.0530.00415.13
7.2.110.0460.00715.34
7.2.100.0560.00614.99
7.2.90.0520.01315.23
7.2.80.0690.00715.36
7.2.70.0560.00315.14
7.2.60.0700.01015.05
7.2.50.0560.00015.10
7.2.40.0700.00315.14
7.2.30.0620.00315.21
7.2.20.0620.01415.21
7.2.10.1590.00615.09
7.2.00.0520.00715.02
7.1.330.0040.01115.82
7.1.320.0040.01115.86
7.1.310.0070.00715.99
7.1.300.0030.00915.95
7.1.290.0060.00315.73
7.1.280.0130.00316.13
7.1.270.0270.00315.02
7.1.260.0350.00614.91
7.1.250.0380.00614.11

preferences:
33.89 ms | 400 KiB | 5 Q