3v4l.org

run code in 300+ PHP versions simultaneously
<?php class testclass{ var $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.70.0040.01117.13
8.3.60.0040.01116.88
8.3.50.0050.01422.12
8.3.40.0140.00019.10
8.3.30.0060.00919.29
8.3.20.0000.00820.46
8.3.10.0000.00823.95
8.3.00.0030.00519.39
8.2.180.0180.00418.66
8.2.170.0040.01122.96
8.2.160.0070.00720.78
8.2.150.0080.00024.18
8.2.140.0030.00524.66
8.2.130.0050.00326.16
8.2.120.0000.00821.04
8.2.110.0100.00022.51
8.2.100.0080.00419.70
8.2.90.0030.00519.34
8.2.80.0060.00317.97
8.2.70.0000.00817.75
8.2.60.0000.00818.29
8.2.50.0050.00318.07
8.2.40.0050.00321.32
8.2.30.0020.00518.37
8.2.20.0040.00417.91
8.2.10.0000.00818.40
8.2.00.0030.00617.99
8.1.280.0070.00725.92
8.1.270.0080.00823.96
8.1.260.0080.00026.35
8.1.250.0040.00428.09
8.1.240.0060.00322.38
8.1.230.0110.00019.27
8.1.220.0050.00317.80
8.1.210.0040.00418.77
8.1.200.0000.00917.47
8.1.190.0050.00317.50
8.1.180.0050.00318.10
8.1.170.0000.00818.75
8.1.160.0030.00522.13
8.1.150.0040.00418.76
8.1.140.0080.00017.57
8.1.130.0040.00418.10
8.1.120.0040.00417.76
8.1.110.0030.00517.72
8.1.100.0040.00417.62
8.1.90.0000.00717.58
8.1.80.0040.00417.73
8.1.70.0050.00317.55
8.1.60.0090.00017.73
8.1.50.0030.00517.71
8.1.40.0060.00317.58
8.1.30.0040.00417.76
8.1.20.0000.00817.75
8.1.10.0040.00417.64
8.1.00.0070.00017.66
8.0.300.0040.00418.77
8.0.290.0040.00417.40
8.0.280.0000.00718.66
8.0.270.0000.00817.37
8.0.260.0000.00617.43
8.0.250.0030.00317.14
8.0.240.0090.00017.09
8.0.230.0030.00317.08
8.0.220.0030.00317.17
8.0.210.0000.00717.05
8.0.200.0000.00617.11
8.0.190.0000.00817.16
8.0.180.0040.00417.16
8.0.170.0050.00317.20
8.0.160.0040.00417.14
8.0.150.0070.00017.17
8.0.140.0000.00717.17
8.0.130.0030.00313.52
8.0.120.0040.00717.15
8.0.110.0070.00017.07
8.0.100.0050.00217.23
8.0.90.0070.00017.03
8.0.80.0070.00817.29
8.0.70.0040.00416.99
8.0.60.0040.00417.03
8.0.50.0040.00417.26
8.0.30.0080.01117.29
8.0.20.0070.01217.46
8.0.10.0000.00817.27
8.0.00.0080.00916.95
7.4.330.0000.00615.31
7.4.320.0070.00016.70
7.4.300.0030.00316.72
7.4.290.0000.00716.83
7.4.280.0110.00016.70
7.4.270.0090.00316.57
7.4.260.0000.00716.82
7.4.250.0040.00416.81
7.4.240.0000.00716.78
7.4.230.0070.00016.92
7.4.220.0160.01316.77
7.4.210.0100.00416.78
7.4.200.0070.00016.67
7.4.190.0030.00316.98
7.4.160.0060.00916.54
7.4.150.0090.00917.40
7.4.140.0090.00917.86
7.4.130.0100.00716.79
7.4.120.0080.00916.71
7.4.110.0060.01216.78
7.4.100.0030.01316.74
7.4.90.0030.01316.70
7.4.80.0170.00319.39
7.4.70.0080.00816.52
7.4.60.0070.01016.59
7.4.50.0040.00016.84
7.4.40.0060.01216.71
7.4.30.0040.01116.62
7.4.00.0050.01015.02
7.3.330.0000.00613.37
7.3.320.0030.00313.61
7.3.310.0000.00716.61
7.3.300.0040.00416.57
7.3.290.0090.00916.57
7.3.280.0140.00616.58
7.3.270.0130.01317.40
7.3.260.0150.00816.54
7.3.250.0050.01416.60
7.3.240.0100.00716.76
7.3.230.0130.00316.59
7.3.210.0090.01116.81
7.3.200.0060.01219.39
7.3.190.0140.00716.57
7.3.180.0090.00616.57
7.3.170.0160.00316.68
7.3.160.0040.01116.66
7.3.120.0120.00514.94
7.3.110.0160.00014.90
7.3.100.0040.00815.16
7.3.90.0040.01115.12
7.3.80.0080.00415.14
7.3.70.0000.01314.86
7.3.60.0120.00314.96
7.3.50.0080.00814.87
7.3.40.0030.01314.78
7.3.30.0030.01314.99
7.3.20.0120.00016.90
7.3.10.0060.00616.95
7.3.00.0060.00916.75
7.2.330.0090.00916.93
7.2.320.0100.00717.04
7.2.310.0080.01416.71
7.2.300.0140.00616.99
7.2.290.0040.01616.95
7.2.250.0000.01815.33
7.2.240.0160.00315.19
7.2.230.0050.00515.30
7.2.220.0100.00314.94
7.2.210.0030.01014.83
7.2.200.0060.01215.11
7.2.190.0030.00915.34
7.2.180.0070.01015.25
7.2.170.0060.00915.15
7.1.330.0070.00715.59
7.1.320.0040.00815.62
7.1.310.0110.00416.00
7.1.300.0040.00716.01
7.1.290.0070.00715.63
7.1.280.0060.00915.98
7.1.270.0030.01215.68
7.1.260.0060.00515.81
7.1.100.0030.00917.98
7.1.70.0050.00217.16
7.1.60.0140.01019.46
7.1.50.0100.01316.76
7.1.00.0070.07322.54
7.0.200.0050.00516.91
7.0.140.0030.07322.14
7.0.60.0170.06719.98
7.0.50.0000.04318.02
7.0.40.0100.04320.26
7.0.30.0300.08020.32
7.0.20.0270.06020.22
7.0.10.0130.08020.29
7.0.00.0070.04020.31
5.6.280.0000.07321.18
5.6.210.0100.05720.88
5.6.200.0030.07718.36
5.6.190.0000.08020.50
5.6.180.0130.04720.73
5.6.170.0270.05320.51
5.6.160.0100.08720.66
5.6.150.0200.07018.27
5.6.140.0100.03718.38
5.6.130.0070.04018.31
5.6.120.0100.07720.84
5.6.110.0100.07020.99
5.6.100.0070.07721.04
5.6.90.0000.04721.12
5.6.80.0170.07320.63
5.5.350.0130.07320.51
5.5.340.0030.04018.11
5.5.330.0070.07020.33
5.5.320.0370.07320.34
5.5.310.0430.06320.50
5.5.300.0130.08018.21
5.5.290.0070.08718.11
5.5.280.0130.08020.78
5.5.270.0070.08721.07
5.5.260.0130.06020.73
5.5.250.0200.07020.88
5.5.240.0230.06720.18
5.4.450.0300.06719.41
5.4.440.0300.04319.43
5.4.430.0270.05719.37
5.4.420.0300.04019.38
5.4.410.0300.07719.59
5.4.400.0300.07019.23
5.4.390.0270.04319.34
5.4.380.0330.06719.07
5.4.370.0330.05319.39
5.4.360.0200.04319.30
5.4.350.0300.06019.08
5.4.340.0270.07319.30
5.4.320.0430.03319.36
5.4.310.0330.04319.16
5.4.300.0270.07319.31
5.4.290.0330.07019.32
5.4.280.0370.06319.23
5.4.270.0300.07319.05
5.4.260.0270.04719.07
5.4.250.0270.04019.02
5.4.240.0370.06719.30
5.4.230.0300.06719.05
5.4.220.0200.05019.05
5.4.210.0270.06319.07
5.4.200.0330.05319.39
5.4.190.0300.07319.29
5.4.180.0270.03719.29
5.4.170.0270.04319.35
5.4.160.0300.07019.05
5.4.150.0270.05719.14
5.4.140.0170.04316.64
5.4.130.0470.02316.43
5.4.120.0270.03316.45
5.4.110.0270.07316.54
5.4.100.0330.06016.55
5.4.90.0270.06716.53
5.4.80.0430.03316.52
5.4.70.0270.07016.68
5.4.60.0330.06016.68
5.4.50.0300.03716.56
5.4.40.0300.03716.50
5.4.30.0230.07016.50
5.4.20.0330.03716.55
5.4.10.0230.06016.51
5.4.00.0270.04016.07
5.3.290.0300.04314.86
5.3.280.0270.05314.85
5.3.270.0230.04014.87
5.3.260.0370.03314.77
5.3.250.0270.05014.92
5.3.240.0230.05014.66
5.3.230.0270.06714.80
5.3.220.0270.04014.64
5.3.210.0200.04014.64
5.3.200.0230.06714.82
5.3.190.0330.06714.87
5.3.180.0330.06314.82
5.3.170.0400.06014.86
5.3.160.0330.04014.64
5.3.150.0370.05014.72
5.3.140.0230.04314.80
5.3.130.0330.07014.62
5.3.120.0370.04714.85
5.3.110.0370.04014.62
5.3.100.0330.06714.11
5.3.90.0300.05714.09
5.3.80.0300.05314.26
5.3.70.0230.05714.11
5.3.60.0330.03314.04
5.3.50.0300.05714.25
5.3.40.0270.07314.00
5.3.30.0300.06714.16
5.3.20.0300.07313.68
5.3.10.0430.05013.67
5.3.00.0370.06313.81
5.2.170.0230.06311.92
5.2.160.0200.06311.92
5.2.150.0230.05011.92
5.2.140.0270.05011.92
5.2.130.0270.05011.92
5.2.120.0300.05311.92
5.2.110.0300.05311.92
5.2.100.0300.05311.92
5.2.90.0300.05011.92
5.2.80.0270.05711.92
5.2.70.0230.05711.92
5.2.60.0300.03311.92
5.2.50.0270.05311.92
5.2.40.0270.04311.92
5.2.30.0170.04011.92
5.2.20.0200.06011.92
5.2.10.0200.05711.92
5.2.00.0330.02711.92
5.1.60.0330.03011.92
5.1.50.0200.05011.92
5.1.40.0230.04011.92
5.1.30.0170.05011.92
5.1.20.0230.04711.92
5.1.10.0170.03011.92
5.1.00.0200.02311.92
5.0.50.0070.04011.92
5.0.40.0130.04011.92
5.0.30.0130.04311.92
5.0.20.0170.04011.92
5.0.10.0070.03311.92
5.0.00.0070.05011.92
4.4.90.0170.03011.92
4.4.80.0130.03011.92
4.4.70.0170.03011.92
4.4.60.0130.03311.92
4.4.50.0100.03711.92
4.4.40.0070.04311.92
4.4.30.0100.03711.92
4.4.20.0070.03711.92
4.4.10.0100.02711.92
4.4.00.0100.02311.92
4.3.110.0100.03711.92
4.3.100.0100.02311.92
4.3.90.0130.02311.92
4.3.80.0130.04711.92
4.3.70.0100.03311.92
4.3.60.0100.02711.92
4.3.50.0070.04011.92
4.3.40.0070.04311.92
4.3.30.0070.02711.92
4.3.20.0070.02011.92
4.3.10.0030.02011.92
4.3.00.0030.02311.92

preferences:
44.85 ms | 401 KiB | 5 Q