3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = <<<EOD <?xml version="1.0" encoding="UTF-8"?> <gvq:GVQ_Metadata id="dataset_MD" xmlns:updated19115="http://www.geoviqua.org/19115_updates" xmlns:gmx="http://www.isotc211.org/2005/gmx" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:gmd="http://www.isotc211.org/2005/gmd" xmlns:gco="http://www.isotc211.org/2005/gco" xmlns:gvq="http://www.geoviqua.org/QualityInformationModel/4.0" xmlns:gml="http://www.opengis.net/gml/3.2" xmlns:gmd19157="http://www.geoviqua.org/gmd19157" xmlns:un="http://www.uncertml.org/2.0" xmlns:qml="http://qualityml.geoviqua.org/1.0" xsi:schemaLocation="http://www.geoviqua.org/QualityInformationModel/4.0 http://schemas.geoviqua.org/GVQ/4.0/GeoViQua_PQM_UQM.xsd http://www.uncertml.org/2.0 http://qualityml.geoviqua.org/schemas/uncertml/2.0/uncertml.xsd http://qualityml.geoviqua.org/1.0 http://qualityml.geoviqua.org/schemas/qualityml/1.0/qualityml.xsd"> <gmd:fileIdentifier> <gco:CharacterString>mtri2an1ib</gco:CharacterString> </gmd:fileIdentifier> </gvq:GVQ_Metadata> EOD; $dom = new DOMDocument; $dom->loadXML($xml); // get all the namespaces in the document $sxe = new SimpleXMLElement($xml); $ns = $sxe->getDocNamespaces(TRUE); // create an xpath object and register the namespaces $xpath = new DOMXpath($dom); foreach ($ns as $prefix => $uri) { $xpath->registerNamespace($prefix, $uri); } foreach ($xpath->query("//gmd:fileIdentifier/gco:CharacterString") as $element) { $element->nodeValue = "something"; } echo $dom->saveXML(); ?>

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.0090.01318.80
8.3.50.0150.01021.33
8.3.40.0140.00419.46
8.3.30.0070.00720.79
8.3.20.0040.00420.69
8.3.10.0040.00422.47
8.3.00.0030.00622.77
8.2.180.0040.01517.00
8.2.170.0110.00722.96
8.2.160.0030.01022.75
8.2.150.0000.00824.18
8.2.140.0030.00624.66
8.2.130.0110.00726.16
8.2.120.0040.00421.03
8.2.110.0030.00622.70
8.2.100.0040.00818.09
8.2.90.0000.00819.50
8.2.80.0000.00719.62
8.2.70.0000.00817.98
8.2.60.0030.00518.41
8.2.50.0030.00618.07
8.2.40.0080.00018.72
8.2.30.0040.00419.84
8.2.20.0040.00418.02
8.2.10.0000.00818.18
8.2.00.0090.00318.07
8.1.280.0150.00025.92
8.1.270.0060.00323.99
8.1.260.0080.00026.35
8.1.250.0000.00928.09
8.1.240.0090.00024.14
8.1.230.0110.00019.67
8.1.220.0030.00518.04
8.1.210.0090.00018.77
8.1.200.0030.00717.98
8.1.190.0050.00318.00
8.1.180.0040.00419.38
8.1.170.0030.00619.02
8.1.160.0030.00519.29
8.1.150.0060.00619.02
8.1.140.0020.00517.86
8.1.130.0070.00018.29
8.1.120.0040.00417.98
8.1.110.0030.00517.77
8.1.100.0040.00417.75
8.1.90.0000.00717.79
8.1.80.0030.00517.86
8.1.70.0000.00717.78
8.1.60.0000.00918.09
8.1.50.0060.00317.91
8.1.40.0040.00317.79
8.1.30.0080.00018.13
8.1.20.0000.00817.89
8.1.10.0030.00517.82
8.1.00.0000.00817.95
8.0.300.0040.00418.77
8.0.290.0040.00417.68
8.0.280.0000.00818.85
8.0.270.0040.00417.81
8.0.260.0000.00617.31
8.0.250.0050.00317.30
8.0.240.0000.00817.55
8.0.230.0000.00717.46
8.0.220.0000.00717.23
8.0.210.0030.00517.48
8.0.200.0040.00417.47
8.0.190.0040.00417.32
8.0.180.0070.00017.47
8.0.170.0000.00717.46
8.0.160.0000.00717.47
8.0.150.0050.00217.19
8.0.140.0040.00417.23
8.0.130.0030.00313.71
8.0.120.0040.00417.45
8.0.110.0030.00517.22
8.0.100.0090.00017.31
8.0.90.0040.00417.37
8.0.80.0110.00617.28
8.0.70.0000.00817.30
8.0.60.0030.00517.43
8.0.50.0030.00617.35
8.0.30.0110.00817.58
8.0.20.0150.00917.66
8.0.10.0050.00217.41
8.0.00.0050.01417.15
7.4.330.0000.00615.00
7.4.320.0070.00017.09
7.4.300.0030.00316.87
7.4.290.0030.00317.07
7.4.280.0030.00516.91
7.4.270.0080.00016.92
7.4.260.0030.00313.72
7.4.250.0080.00016.75
7.4.240.0030.00417.01
7.4.230.0000.00716.78
7.4.220.0070.01117.08
7.4.210.0030.01116.98
7.4.200.0040.00417.00
7.4.190.0030.00317.14
7.4.160.0100.00716.99
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0130.00516.85
7.4.120.0100.00816.83
7.4.110.0060.01816.95
7.4.100.0090.00917.11
7.4.90.0140.00316.98
7.4.80.0040.01519.39
7.4.70.0040.01417.01
7.4.60.0110.00616.89
7.4.50.0030.00616.56
7.4.40.0040.00822.77
7.4.30.0030.01416.96
7.4.00.0110.00615.27
7.3.330.0000.00613.59
7.3.320.0000.00813.70
7.3.310.0050.00316.76
7.3.300.0070.00016.72
7.3.290.0100.00916.75
7.3.280.0090.00716.82
7.3.270.0090.00917.40
7.3.260.0190.00417.16
7.3.250.0120.00916.98
7.3.240.0090.00917.10
7.3.230.0140.00316.84
7.3.210.0060.01216.96
7.3.200.0180.00319.39
7.3.190.0180.00416.82
7.3.180.0140.00717.00
7.3.170.0090.01516.91
7.3.160.0090.00616.94
7.3.120.0060.01115.05
7.3.110.0110.00815.23
7.3.100.0160.00015.02
7.3.90.0030.00615.05
7.3.80.0040.01215.13
7.3.70.0070.00714.99
7.3.60.0100.00015.09
7.3.50.0030.00914.97
7.3.40.0000.00915.12
7.3.30.0060.00615.04
7.3.20.0060.00616.95
7.3.10.0040.00716.94
7.3.00.0060.00616.94
7.2.330.0140.00317.21
7.2.320.0100.00717.01
7.2.310.0150.00616.98
7.2.300.0060.01116.74
7.2.290.0140.00717.04
7.2.250.0100.00915.25
7.2.240.0030.01315.25
7.2.230.0030.01315.27
7.2.220.0090.00615.32
7.2.210.0060.00315.31
7.2.200.0090.00615.30
7.2.190.0030.01015.20
7.2.180.0030.00615.11
7.2.170.0100.00315.28
7.2.160.0110.00715.25
7.2.150.0060.00317.13
7.2.140.0120.00017.05
7.2.130.0040.01117.31
7.2.120.0000.01317.15
7.2.110.0080.00817.24
7.2.100.0060.01316.95
7.2.90.0040.01117.03
7.2.80.0000.00917.13
7.2.70.0080.00317.15
7.2.60.0030.01316.95
7.2.50.0120.00616.98
7.2.40.0000.01817.00
7.2.30.0030.01217.07
7.2.20.0000.01417.20
7.2.10.0050.00517.02
7.2.00.0080.00918.42
7.1.330.0040.01415.93
7.1.320.0030.01015.94
7.1.310.0030.00815.87
7.1.300.0060.00815.91
7.1.290.0030.00716.03
7.1.280.0040.01115.79
7.1.270.0030.00615.72
7.1.260.0030.00715.83
7.1.250.0030.00616.12
7.1.240.0030.01015.90
7.1.230.0030.01015.89
7.1.220.0000.01815.86
7.1.210.0030.01015.80
7.1.200.0080.00015.92
7.1.190.0060.00916.09
7.1.180.0070.00716.08
7.1.170.0060.00915.80
7.1.160.0040.01116.13
7.1.150.0100.00616.06
7.1.140.0060.00315.99
7.1.130.0060.01016.10
7.1.120.0030.00915.81
7.1.110.0060.00615.90
7.1.100.0040.00517.02
7.1.90.0100.00316.03
7.1.80.0040.00715.88
7.1.70.0080.00516.61
7.1.60.0070.01217.66
7.1.50.0120.01525.41
7.1.40.0030.01016.13
7.1.30.0120.00315.85
7.1.20.0060.00915.96
7.1.10.0070.00716.11
7.1.00.0060.03719.38
7.0.330.0030.01115.71
7.0.320.0100.00315.47
7.0.310.0060.00315.55
7.0.300.0030.01415.68
7.0.290.0030.01315.47
7.0.280.0030.01215.71
7.0.270.0060.00615.64
7.0.260.0060.00615.66
7.0.250.0000.01415.65
7.0.240.0000.00815.48
7.0.230.0000.01015.48
7.0.220.0070.00715.62
7.0.210.0000.01015.52
7.0.200.0090.00116.25
7.0.190.0030.01315.38
7.0.180.0070.00715.48
7.0.170.0030.00915.63
7.0.160.0070.00715.56
7.0.150.0070.00715.49
7.0.140.0030.03818.91
7.0.130.0000.00915.65
7.0.120.0030.00915.51
7.0.110.0030.00615.65
7.0.100.0090.00315.55
7.0.90.0040.00715.66
7.0.80.0130.00715.61
7.0.70.0030.04418.65
7.0.60.0080.04018.84
7.0.50.0040.04618.92
7.0.40.0070.04516.86
7.0.30.0050.04316.98
7.0.20.0070.04316.92
7.0.10.0030.03416.96
7.0.00.0020.04616.99
5.6.400.0030.00914.70
5.6.390.0090.00014.72
5.6.380.0030.00714.54
5.6.370.0030.01014.69
5.6.360.0040.01114.86
5.6.350.0030.01014.29
5.6.340.0090.00614.31
5.6.330.0070.00314.53
5.6.320.0080.00814.58
5.6.310.0070.00714.27
5.6.300.0000.01114.77
5.6.290.0100.00714.50
5.6.280.0030.04217.94
5.6.270.0030.01014.68
5.6.260.0030.01014.59
5.6.250.0100.00614.67
5.6.240.0040.00414.56
5.6.230.0080.00314.63
5.6.220.0070.04417.62
5.6.210.0030.03917.91
5.6.200.0030.04117.83
5.6.190.0030.05017.93
5.6.180.0080.03717.89
5.6.170.0010.04418.00
5.6.160.0030.04517.87
5.6.150.0050.03617.81
5.6.140.0070.02217.89
5.6.130.0080.02417.88
5.6.120.0040.02517.85
5.6.110.0090.02117.93
5.6.100.0030.02017.78
5.6.90.0030.02117.91
5.6.80.0050.02017.60
5.6.70.0080.01817.53
5.6.60.0050.01817.44
5.6.50.0020.02217.48
5.6.40.0050.02317.65
5.6.30.0030.02017.47
5.6.20.0030.02017.60
5.6.10.0050.01717.59
5.6.00.0050.01917.38
5.5.380.0030.01214.27
5.5.370.0000.01514.39
5.5.360.0080.04517.54
5.5.350.0070.04317.63
5.5.340.0070.03717.76
5.5.330.0030.04817.88
5.5.320.0070.03517.77
5.5.310.0050.03717.68
5.5.300.0050.02417.73
5.5.290.0060.02217.76
5.5.280.0070.02017.87
5.5.270.0020.03317.70
5.5.260.0050.02317.77
5.5.250.0050.02517.58
5.5.240.0050.02117.41
5.5.230.0030.02517.43
5.5.220.0000.02317.51
5.5.210.0020.02317.43
5.5.200.0030.02317.44
5.5.190.0050.01817.57
5.5.180.0050.02017.39
5.5.170.0030.01514.32
5.5.160.0030.02017.29
5.5.150.0040.02517.17
5.5.140.0070.01717.51
5.5.130.0030.02017.38
5.5.120.0030.02117.42
5.5.110.0050.02117.50
5.5.100.0050.02017.41
5.5.90.0020.02217.40
5.5.80.0060.01717.27
5.5.70.0020.02417.31
5.5.60.0060.01817.26
5.5.50.0020.01917.35
5.5.40.0050.02017.40
5.5.30.0030.02017.36
5.5.20.0030.02017.27
5.5.10.0080.01817.27
5.5.00.0000.02217.34
5.4.450.0020.02315.83
5.4.440.0020.02315.79
5.4.430.0020.03015.80
5.4.420.0030.02115.71
5.4.410.0060.02015.70
5.4.400.0030.02015.60
5.4.390.0050.02315.66
5.4.380.0000.02015.47
5.4.370.0030.01515.48
5.4.360.0030.02315.67
5.4.350.0030.01715.59
5.4.340.0050.01515.57
5.4.330.0040.00411.94
5.4.320.0030.02215.66
5.4.310.0040.01615.52
5.4.300.0010.01815.58
5.4.290.0060.01615.60
5.4.280.0040.01815.56
5.4.270.0060.01615.56
5.4.260.0000.01915.66
5.4.250.0030.01915.48
5.4.240.0010.01915.60
5.4.230.0030.01715.68
5.4.220.0020.02215.51
5.4.210.0020.01715.48
5.4.200.0030.01615.59
5.4.190.0050.01715.56
5.4.180.0030.02315.55
5.4.170.0050.01715.48
5.4.160.0020.02015.59
5.4.150.0020.02615.57
5.4.140.0050.01514.23
5.4.130.0030.03514.18
5.4.120.0030.03114.25
5.4.110.0070.03214.23
5.4.100.0050.03314.24
5.4.90.0020.03314.23
5.4.80.0050.03814.26
5.4.70.0040.03414.19
5.4.60.0060.03314.26
5.4.50.0030.04014.22
5.4.40.0020.02614.27
5.4.30.0040.03414.29
5.4.20.0060.02414.22
5.4.10.0050.03414.27
5.4.00.0030.03213.94
5.3.290.0000.02713.40
5.3.280.0020.02113.38
5.3.270.0030.01913.34
5.3.260.0050.02013.30
5.3.250.0020.02213.36
5.3.240.0000.04313.38
5.3.230.0020.03013.29
5.3.220.0040.03613.36
5.3.210.0060.04113.29
5.3.200.0080.04013.28
5.3.190.0030.04213.34
5.3.180.0080.03613.32
5.3.170.0060.02613.32
5.3.160.0040.04313.36
5.3.150.0050.04113.33
5.3.140.0020.04213.34
5.3.130.0040.03113.32
5.3.120.0040.03213.34
5.3.110.0090.02913.36
5.3.100.0060.03513.10
5.3.90.0030.04013.01
5.3.80.0030.03913.09
5.3.70.0030.03813.08
5.3.60.0030.03513.08
5.3.50.0040.03913.02
5.3.40.0050.03412.95
5.3.30.0030.03813.02
5.3.20.0030.04012.93
5.3.10.0050.02812.92
5.3.00.0050.03012.80
5.2.170.0030.04311.23
5.2.160.0030.06011.33
5.2.150.0000.07011.33
5.2.140.0030.06711.38
5.2.130.0070.05311.16
5.2.120.0070.06011.41
5.2.110.0000.06011.27
5.2.100.0000.06311.36
5.2.90.0000.06011.38
5.2.80.0070.06011.38
5.2.70.0070.05311.28
5.2.60.0030.06311.27
5.2.50.0070.06011.18
5.2.40.0070.06011.14
5.2.30.0070.05711.19
5.2.20.0070.03711.13
5.2.10.0030.05011.16
5.2.00.0000.05711.07
5.1.60.0030.04710.44
5.1.50.0030.04010.44
5.1.40.0000.04310.44
5.1.30.0030.04010.48
5.1.20.0070.04710.66
5.1.10.0070.05310.44
5.1.00.0030.04010.44
5.0.50.0000.04710.44
5.0.40.0070.03710.44
5.0.30.0030.06010.44
5.0.20.0030.03310.44
5.0.10.0070.03310.44
5.0.00.0000.06710.44
4.4.90.0030.03010.44
4.4.80.0000.03710.44
4.4.70.0000.03710.44
4.4.60.0000.03710.44
4.4.50.0030.03010.44
4.4.40.0070.03310.44
4.4.30.0000.03310.44
4.4.20.0000.03310.44
4.4.10.0030.03310.44
4.4.00.0000.05710.44
4.3.110.0030.03010.44
4.3.100.0000.02710.44
4.3.90.0030.02310.44
4.3.80.0000.05310.44
4.3.70.0000.03010.44
4.3.60.0030.03010.44
4.3.50.0000.03710.44
4.3.40.0030.04310.44
4.3.30.0000.03010.44
4.3.20.0000.02710.44
4.3.10.0030.03710.44
4.3.00.0030.03010.44

preferences:
36.38 ms | 401 KiB | 5 Q