3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testclass{ public $xmlRequestDom = NULL; function __construct($xmlrequest) { if (gettype($xmlrequest)=='object') { $this->xmlRequestDom = $xmlrequest; } else { $this->xmlRequestDom = new DomDocument(); $this->xmlRequestDom->loadXML($xmlrequest); } $this->setParamsFromXMLRequest(); } function setParamsFromXMLRequest() { $children = $doc->documentElement->childNodes; foreach($children as $child) { if($child->nodeType != XML_ELEMENT_NODE) continue; echo $child->nodeName; } } } $newxml = "<?xml version=\"1.0\" encoding=\"UTF-8\"?> <c:tellervo xmlns:c=\"http://www.tellervo.org/schema/1.0\" xmlns:gml=\"http://www.opengis.net/gml\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xmlns:tridas=\"http://www.tridas.org/1.2.2\"> <c:request type=\"create\"> <tridas:object> <tridas:title>ppp</tridas:title> <tridas:type normalStd=\"Tellervo\" normalId=\"1\" normal=\"Site\" /> <tridas:genericField name=\"tellervo.objectLabCode\">ppp</tridas:genericField> </tridas:object> </c:request> </c:tellervo>"; $myParamObj = new testclass($newxml);

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.0060.01317.00
8.3.50.0120.01022.13
8.3.40.0090.00619.04
8.3.30.0110.00419.27
8.3.20.0040.00420.54
8.3.10.0040.00423.77
8.3.00.0040.00420.76
8.2.180.0140.00317.13
8.2.170.0120.00322.96
8.2.160.0130.00022.43
8.2.150.0080.00024.18
8.2.140.0050.00324.66
8.2.130.0040.00426.16
8.2.120.0040.00419.91
8.2.110.0040.00422.33
8.2.100.0120.00018.09
8.2.90.0000.00819.38
8.2.80.0000.00918.29
8.2.70.0060.00317.88
8.2.60.0060.00318.05
8.2.50.0000.00818.07
8.2.40.0030.00518.34
8.2.30.0030.00618.25
8.2.20.0030.00617.90
8.2.10.0040.00418.02
8.2.00.0000.00817.92
8.1.280.0070.00725.92
8.1.270.0000.00924.15
8.1.260.0040.00426.35
8.1.250.0000.00728.09
8.1.240.0110.00818.74
8.1.230.0040.00819.26
8.1.220.0080.00017.90
8.1.210.0050.00318.77
8.1.200.0040.00417.61
8.1.190.0040.00417.76
8.1.180.0080.00018.10
8.1.170.0050.00318.90
8.1.160.0070.00022.18
8.1.150.0040.00418.87
8.1.140.0080.00017.72
8.1.130.0070.00018.09
8.1.120.0000.00817.76
8.1.110.0000.00817.71
8.1.100.0000.00717.70
8.1.90.0040.00417.74
8.1.80.0000.00717.73
8.1.70.0000.01017.59
8.1.60.0000.00917.73
8.1.50.0050.00317.61
8.1.40.0040.00417.62
8.1.30.0000.00817.79
8.1.20.0080.00017.75
8.1.10.0030.00517.77
8.1.00.0000.00817.61
8.0.300.0040.00418.77
8.0.290.0030.00617.30
8.0.280.0000.00718.56
8.0.270.0040.00417.43
8.0.260.0030.00317.11
8.0.250.0070.00017.11
8.0.240.0040.00417.17
8.0.230.0000.00717.14
8.0.220.0000.00817.22
8.0.210.0070.00017.19
8.0.200.0030.00317.29
8.0.190.0030.00517.30
8.0.180.0030.00617.16
8.0.170.0040.00417.25
8.0.160.0080.00017.31
8.0.150.0050.00517.17
8.0.140.0000.00717.14
8.0.130.0030.00313.68
8.0.120.0080.00017.16
8.0.110.0000.00817.02
8.0.100.0000.00716.96
8.0.90.0070.00017.17
8.0.80.0030.01017.02
8.0.70.0060.00316.96
8.0.60.0000.00717.07
8.0.50.0040.00417.09
8.0.30.0070.01117.11
8.0.20.0090.01117.42
8.0.10.0040.00417.32
8.0.00.0110.00717.01
7.4.330.0050.00015.24
7.4.320.0040.00416.74
7.4.300.0060.00016.73
7.4.290.0000.00716.80
7.4.280.0090.00316.68
7.4.270.0000.00716.70
7.4.260.0070.00016.81
7.4.250.0040.00416.78
7.4.240.0020.00616.72
7.4.230.0040.00416.84
7.4.220.0090.00916.86
7.4.210.0100.00616.87
7.4.200.0070.00016.92
7.4.190.0050.00516.66
7.4.160.0040.01116.70
7.4.150.0140.00317.40
7.4.140.0140.00817.86
7.4.130.0050.01516.76
7.4.120.0090.00916.87
7.4.110.0080.00816.77
7.4.100.0060.01716.85
7.4.90.0120.00616.80
7.4.80.0080.00816.88
7.4.70.0040.01416.89
7.4.60.0100.01016.67
7.4.50.0000.00416.74
7.4.40.0090.00422.77
7.4.30.0130.00316.86
7.4.00.0080.00715.06
7.3.330.0030.00313.56
7.3.320.0050.00013.52
7.3.310.0030.00316.41
7.3.300.0040.00416.55
7.3.290.0070.00716.55
7.3.280.0110.00716.56
7.3.270.0140.00317.40
7.3.260.0230.01816.64
7.3.250.0120.00716.77
7.3.240.0100.01316.90
7.3.230.0110.00616.73
7.3.210.0090.00916.64
7.3.200.0090.01219.39
7.3.190.0170.00616.70
7.3.180.0120.00416.55
7.3.170.0070.01516.82
7.3.160.0120.00616.69
7.3.120.0080.01015.05
7.3.110.0070.00714.90
7.3.100.0040.01115.00
7.3.90.0060.00614.98
7.3.80.0070.00814.78
7.3.70.0070.00614.76
7.3.60.0030.01314.90
7.3.50.0030.00915.00
7.3.40.0040.01314.99
7.3.30.0140.00114.97
7.3.20.0070.00516.79
7.3.10.0090.00416.80
7.3.00.0080.00516.74
7.2.330.0090.01016.91
7.2.320.0070.01017.00
7.2.310.0030.01416.70
7.2.300.0170.00017.02
7.2.290.0160.00016.76
7.2.250.0070.01215.17
7.2.240.0130.00415.18
7.2.230.0070.00815.26
7.2.220.0050.01015.24
7.2.210.0060.00615.01
7.2.200.0050.01115.15
7.2.190.0060.00815.10
7.2.180.0090.00615.30
7.2.170.0070.00815.07
7.2.130.0140.00016.97
7.2.120.0000.01517.01
7.2.110.0030.01016.92
7.2.100.0040.00817.05
7.2.90.0090.00616.91
7.2.80.0070.00717.00
7.2.70.0080.00417.20
7.2.60.0080.00816.97
7.2.50.0120.00317.04
7.2.40.0030.01016.95
7.2.30.0060.00917.01
7.2.20.0030.01617.11
7.2.10.0030.01317.07
7.2.00.0050.00718.32
7.1.330.0030.01215.92
7.1.320.0070.00616.00
7.1.310.0000.01316.00
7.1.300.0060.00815.73
7.1.290.0040.00915.86
7.1.280.0070.01015.88
7.1.270.0070.00815.82
7.1.260.0060.00416.01
7.1.250.0030.01016.00
7.1.240.0100.00315.86
7.1.230.0060.00615.80
7.1.220.0040.00415.77
7.1.210.0110.00415.93
7.1.200.0090.00315.94
7.1.190.0110.00415.89
7.1.180.0090.00315.94
7.1.170.0030.00616.00
7.1.160.0040.00815.95
7.1.150.0070.00315.98
7.1.140.0090.00915.66
7.1.130.0130.00315.66
7.1.120.0040.00815.59
7.1.110.0000.01216.14
7.1.100.0100.00817.02
7.1.90.0130.00316.18
7.1.80.0000.01015.85
7.1.70.0000.01216.46
7.1.60.0090.00716.54
7.1.50.0070.01416.54
7.1.40.0080.00415.90
7.1.30.0070.00415.91
7.1.20.0090.00015.78
7.1.10.0090.00916.06
7.1.00.0050.04219.24
7.0.330.0000.01015.67
7.0.320.0030.00615.23
7.0.310.0050.00315.47
7.0.300.0080.00815.54
7.0.290.0060.00315.47
7.0.280.0030.00615.52
7.0.270.0090.00615.47
7.0.260.0070.00315.73
7.0.250.0080.00815.64
7.0.240.0060.00915.56
7.0.230.0100.00315.42
7.0.220.0110.00415.30
7.0.210.0130.00015.55
7.0.200.0040.01116.22
7.0.190.0080.00415.58
7.0.180.0030.01015.78
7.0.170.0090.00615.59
7.0.160.0060.00615.27
7.0.150.0070.00715.52
7.0.140.0010.04318.94
7.0.130.0030.01115.82
7.0.120.0090.00615.36
7.0.110.0070.00415.63
7.0.100.0120.04017.89
7.0.90.0090.03517.75
7.0.80.0080.03817.76
7.0.70.0030.02517.82
7.0.60.0070.03917.72
7.0.50.0160.04317.98
7.0.40.0070.03216.85
7.0.30.0030.04016.84
7.0.20.0050.02916.89
7.0.10.0070.04517.02
7.0.00.0100.03516.79
5.6.380.0090.00614.87
5.6.370.0060.00914.68
5.6.360.0080.00414.36
5.6.350.0060.00614.18
5.6.340.0110.00314.78
5.6.330.0080.00814.86
5.6.320.0040.00714.54
5.6.310.0090.00014.45
5.6.300.0070.00714.41
5.6.290.0080.00414.64
5.6.280.0070.03817.78
5.6.270.0030.00614.63
5.6.260.0030.01014.58
5.6.250.0050.03217.85
5.6.240.0050.02617.53
5.6.230.0150.03817.48
5.6.220.0120.02717.53
5.6.210.0100.03717.63
5.6.200.0050.05017.85
5.6.190.0070.03217.89
5.6.180.0020.04518.09
5.6.170.0070.04517.88
5.6.160.0030.03017.87
5.6.150.0060.03917.76
5.6.140.0050.02217.90
5.6.130.0050.05017.78
5.6.120.0110.02317.69
5.6.110.0070.03717.99
5.6.100.0050.04217.87
5.6.90.0090.04117.87
5.6.80.0030.04617.50
5.6.70.0060.02317.42
5.6.60.0160.03317.37
5.6.50.0120.03817.60
5.6.40.0070.04517.37
5.6.30.0080.04217.37
5.6.20.0080.04117.42
5.6.10.0080.03317.42
5.6.00.0030.04217.45
5.5.380.0050.02516.05
5.5.370.0040.04215.89
5.5.360.0060.03316.02
5.5.350.0070.04215.89
5.5.340.0060.02116.08
5.5.330.0030.04116.22
5.5.320.0050.04416.06
5.5.310.0020.03016.15
5.5.300.0070.02316.15
5.5.290.0050.03116.10
5.5.280.0050.04416.20
5.5.270.0100.03816.15
5.5.260.0070.03216.15
5.5.250.0080.03815.90
5.5.240.0070.04215.87
5.5.230.0050.02415.70
5.5.220.0030.03915.74
5.5.210.0030.03215.82
5.5.200.0050.04115.69
5.5.190.0080.03515.76
5.5.180.0070.03815.80
5.5.170.0040.00411.18
5.5.160.0100.02215.74
5.5.150.0110.02415.88
5.5.140.0050.02215.88
5.5.130.0040.02915.98
5.5.120.0030.02215.91
5.5.110.0050.02215.90
5.5.100.0040.02415.61
5.5.90.0050.02115.70
5.5.80.0050.02115.80
5.5.70.0030.01915.82
5.5.60.0040.02415.72
5.5.50.0040.02215.83
5.5.40.0050.02315.74
5.5.30.0030.02315.86
5.5.20.0030.02315.65
5.5.10.0030.02315.77
5.5.00.0030.02515.76
5.4.450.0100.04215.44
5.4.440.0080.02815.38
5.4.430.0050.04015.38
5.4.420.0070.02415.35
5.4.410.0060.04315.34
5.4.400.0020.02415.29
5.4.390.0070.04315.07
5.4.380.0100.01815.36
5.4.370.0020.04415.10
5.4.360.0080.03515.26
5.4.350.0030.02715.11
5.4.340.0110.03715.20
5.4.330.0000.00611.18
5.4.320.0050.02415.19
5.4.310.0000.04715.20
5.4.300.0060.02015.25
5.4.290.0040.02415.26
5.4.280.0020.02515.27
5.4.270.0050.02015.23
5.4.260.0050.01915.31
5.4.250.0070.02015.21
5.4.240.0080.01715.22
5.4.230.0020.02215.35
5.4.220.0030.02515.22
5.4.210.0070.01715.25
5.4.200.0000.02315.22
5.4.190.0070.02315.09
5.4.180.0030.02015.20
5.4.170.0030.02315.20
5.4.160.0030.02015.19
5.4.150.0020.02515.14
5.4.140.0020.02813.89
5.4.130.0050.01813.93
5.4.120.0030.02013.84
5.4.110.0050.01813.89
5.4.100.0030.02313.94
5.4.90.0020.02213.87
5.4.80.0080.01513.92
5.4.70.0050.01813.86
5.4.60.0030.01813.95
5.4.50.0030.02313.90
5.4.40.0050.02013.85
5.4.30.0070.01813.80
5.4.20.0050.02013.86
5.4.10.0030.02013.80
5.4.00.0000.02313.65
5.3.290.0030.03812.96
5.3.280.0050.02012.95
5.3.270.0020.01813.00
5.3.260.0020.02513.00
5.3.250.0000.02412.97
5.3.240.0060.01812.90
5.3.230.0050.01612.95
5.3.220.0030.02112.98
5.3.210.0030.02012.87
5.3.200.0070.01912.91
5.3.190.0060.02013.00
5.3.180.0000.02412.94
5.3.170.0000.02512.89
5.3.160.0000.02412.88
5.3.150.0020.02313.00
5.3.140.0040.02112.98
5.3.130.0030.02312.93
5.3.120.0020.02212.99
5.3.110.0040.02212.97
5.3.100.0070.03212.71
5.3.90.0030.02512.60
5.3.80.0050.02112.68
5.3.70.0060.01612.59
5.3.60.0050.01812.65
5.3.50.0000.02612.63
5.3.40.0040.02012.61
5.3.30.0030.02012.61
5.3.20.0020.02112.52
5.3.10.0010.01812.42
5.3.00.0020.02112.51
5.2.170.0030.01612.17
5.2.160.0030.01512.17
5.2.150.0020.01612.17
5.2.140.0060.01312.17
5.2.130.0020.01712.17
5.2.120.0040.01612.17
5.2.110.0060.01512.17
5.2.100.0020.01512.17
5.2.90.0020.01712.17
5.2.80.0030.03312.17
5.2.70.0020.03212.17
5.2.60.0050.02212.17
5.2.50.0000.03712.17
5.2.40.0070.02312.17
5.2.30.0040.02012.17
5.2.20.0060.02912.17
5.2.10.0060.01512.17
5.2.00.0000.02412.17
5.1.60.0020.01912.17
5.1.50.0100.02312.17
5.1.40.0040.02812.17
5.1.30.0030.03412.17
5.1.20.0030.02012.17
5.1.10.0070.01912.17
5.1.00.0050.01312.17
5.0.50.0030.02312.17
5.0.40.0040.02312.17
5.0.30.0060.03212.17
5.0.20.0050.01812.17
5.0.10.0030.01712.17
5.0.00.0030.03212.17
4.4.90.0000.02212.17
4.4.80.0050.01512.17
4.4.70.0030.01912.17
4.4.60.0020.01512.17
4.4.50.0020.01412.17
4.4.40.0030.01312.17
4.4.30.0020.02012.17
4.4.20.0050.01812.17
4.4.10.0020.01212.17
4.4.00.0030.02312.17
4.3.110.0030.00912.17
4.3.100.0000.01112.17
4.3.90.0030.02012.17
4.3.80.0050.02712.17
4.3.70.0040.01812.17
4.3.60.0000.02112.17
4.3.50.0000.01212.17
4.3.40.0020.03012.17
4.3.30.0040.00812.17
4.3.20.0000.01512.17
4.3.10.0010.01112.17
4.3.00.0000.01712.17

preferences:
39.62 ms | 401 KiB | 5 Q