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 = $this->xmlRequestDom->documentElement->childNodes; foreach($children as $child) { if($child->nodeType != XML_ELEMENT_NODE) continue; echo $child->nodeName; } } } $newxml = "<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>"; $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.0170.00717.13
8.3.60.0120.00618.68
8.3.50.0070.00822.23
8.3.40.0100.00619.09
8.3.30.0120.00319.38
8.3.20.0040.00420.46
8.3.10.0080.00024.04
8.3.00.0070.00019.50
8.2.180.0100.01017.00
8.2.170.0100.00722.96
8.2.160.0070.00720.60
8.2.150.0000.00824.18
8.2.140.0000.00824.66
8.2.130.0040.00426.16
8.2.120.0090.00020.84
8.2.110.0060.00322.17
8.2.100.0040.00820.71
8.2.90.0050.00319.30
8.2.80.0050.00317.97
8.2.70.0060.00317.88
8.2.60.0030.00918.18
8.2.50.0000.00818.07
8.2.40.0060.00320.19
8.2.30.0000.00918.41
8.2.20.0070.00017.95
8.2.10.0030.00518.32
8.2.00.0040.00417.98
8.1.280.0040.01125.92
8.1.270.0000.01024.04
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0070.00322.35
8.1.230.0070.00419.34
8.1.220.0030.00618.02
8.1.210.0040.00418.77
8.1.200.0060.00317.61
8.1.190.0000.00817.48
8.1.180.0000.00818.10
8.1.170.0040.00418.84
8.1.160.0040.00422.18
8.1.150.0050.00218.73
8.1.140.0040.00417.55
8.1.130.0000.00717.73
8.1.120.0070.00017.82
8.1.110.0070.00017.56
8.1.100.0000.00717.60
8.1.90.0070.00417.56
8.1.80.0000.00817.77
8.1.70.0030.00317.70
8.1.60.0060.00317.89
8.1.50.0080.00017.80
8.1.40.0040.00417.63
8.1.30.0040.00417.87
8.1.20.0030.00617.84
8.1.10.0040.00417.91
8.1.00.0000.00817.56
8.0.300.0060.00318.77
8.0.290.0000.00717.00
8.0.280.0000.00818.76
8.0.270.0030.00317.45
8.0.260.0000.00717.18
8.0.250.0030.00317.25
8.0.240.0030.00317.18
8.0.230.0040.00417.31
8.0.220.0000.00717.14
8.0.210.0040.00417.26
8.0.200.0060.00317.09
8.0.190.0030.00517.13
8.0.180.0000.00817.29
8.0.170.0070.00017.24
8.0.160.0050.00317.13
8.0.150.0040.00417.21
8.0.140.0020.00517.09
8.0.130.0030.00313.74
8.0.120.0000.00717.16
8.0.110.0030.00517.18
8.0.100.0050.00317.24
8.0.90.0030.00517.11
8.0.80.0100.00617.21
8.0.70.0070.00017.23
8.0.60.0040.00417.14
8.0.50.0040.00417.09
8.0.30.0180.00417.16
8.0.20.0090.00917.40
8.0.10.0040.00417.21
8.0.00.0150.00416.96
7.4.330.0000.00615.32
7.4.320.0000.00716.91
7.4.300.0000.00616.56
7.4.290.0030.00316.67
7.4.280.0030.00616.67
7.4.270.0000.00716.88
7.4.260.0000.00816.70
7.4.250.0040.00416.68
7.4.240.0040.00516.63
7.4.230.0000.00816.70
7.4.220.0140.00316.70
7.4.210.0040.01116.74
7.4.200.0070.00016.79
7.4.190.0000.00716.79
7.4.160.0060.00916.48
7.4.150.0090.00917.40
7.4.140.0150.00317.86
7.4.130.0100.00616.65
7.4.120.0040.01316.76
7.4.110.0150.00416.88
7.4.100.0130.00616.80
7.4.90.0150.00316.72
7.4.80.0130.01019.39
7.4.70.0130.00716.80
7.4.60.0080.01416.84
7.4.50.0040.00016.72
7.4.40.0150.00316.80
7.4.30.0110.00516.81
7.4.00.0130.00315.00
7.3.330.0030.00313.49
7.3.320.0030.00313.56
7.3.310.0030.00316.67
7.3.300.0060.00016.54
7.3.290.0040.01116.62
7.3.280.0110.00916.57
7.3.270.0120.00617.40
7.3.260.0160.00716.63
7.3.250.0140.00616.76
7.3.240.0100.00716.57
7.3.230.0130.00316.72
7.3.210.0090.01116.82
7.3.200.0130.01019.39
7.3.190.0080.01216.55
7.3.180.0070.01016.84
7.3.170.0060.01016.71
7.3.160.0090.01216.68
7.3.120.0060.00915.02
7.2.330.0150.00616.70
7.2.320.0140.00517.07
7.2.310.0090.00917.02
7.2.300.0110.00616.93
7.2.290.0140.00816.89
7.2.00.0060.00919.35
7.1.100.0060.00618.31
7.1.70.0110.00417.30
7.1.60.0060.01619.70
7.1.50.0140.01117.03
7.1.00.0070.07022.55
7.0.200.0000.00716.70
7.0.140.0000.07722.11
7.0.60.0070.05720.12
7.0.50.0130.07317.95
7.0.40.0130.04320.14
7.0.30.0470.06320.27
7.0.20.0200.05020.32
7.0.10.0030.04720.41
7.0.00.0100.03320.21
5.6.280.0100.07021.17
5.6.210.0130.07720.78
5.6.200.0070.08718.20
5.6.190.0100.08020.54
5.6.180.0300.07320.59
5.6.170.0230.08020.56
5.6.160.0030.08020.68
5.6.150.0030.05718.33
5.6.140.0070.08018.20
5.6.130.0070.05718.39
5.6.120.0130.08021.01
5.6.110.0130.08321.07
5.6.100.0100.07321.02
5.6.90.0070.08321.18
5.6.80.0030.07720.52
5.5.350.0100.07720.49
5.5.340.0070.08018.12
5.5.330.0100.04020.29
5.5.320.0370.06020.43
5.5.310.0200.07320.48
5.5.300.0070.07318.12
5.5.290.0130.08018.03
5.5.280.0100.06720.88
5.5.270.0130.07720.78
5.5.260.0030.04320.88
5.5.250.0070.06320.84
5.5.240.0230.06320.16
5.4.450.0100.07719.61
5.4.440.0030.06719.61
5.4.430.0070.05719.67
5.4.420.0100.03719.60
5.4.410.0030.06019.43
5.4.400.0100.06719.23
5.4.390.0070.03719.05
5.4.380.0100.07719.45
5.4.370.0030.05019.21
5.4.360.0030.08019.38
5.4.350.0000.08019.29
5.4.340.0130.07719.25
5.4.320.0100.07319.09
5.4.310.0100.04319.23
5.4.300.0030.05319.22
5.4.290.0070.06318.94
5.4.280.0200.06318.95
5.4.270.0130.06719.08
5.4.260.0030.04319.08
5.4.250.0100.06018.92
5.4.240.0070.07319.23
5.4.230.0100.06719.05
5.4.220.0200.06318.94
5.4.210.0130.05319.27
5.4.200.0030.07019.23
5.4.190.0100.07018.92
5.4.180.0100.07718.96
5.4.170.0100.06719.07
5.4.160.0100.05319.06
5.4.150.0170.06719.20
5.4.140.0000.04316.43
5.4.130.0100.04016.47
5.4.120.0030.05716.58
5.4.110.0030.03716.52
5.4.100.0070.04316.73
5.4.90.0130.04316.64
5.4.80.0030.04716.45
5.4.70.0070.05716.45
5.4.60.0170.03016.54
5.4.50.0070.03716.55
5.4.40.0070.07016.60
5.4.30.0030.07316.48
5.4.20.0070.05716.51
5.4.10.0130.07016.49
5.4.00.0100.07016.02
5.3.290.0070.07714.91
5.3.280.0000.04314.81
5.3.270.0070.07714.82
5.3.260.0100.04314.82
5.3.250.0130.04014.76
5.3.240.0130.05314.82
5.3.230.0130.07014.69
5.3.220.0100.03714.57
5.3.210.0070.04714.69
5.3.200.0070.03314.73
5.3.190.0100.04014.80
5.3.180.0130.07314.57
5.3.170.0070.06714.77
5.3.160.0200.06714.76
5.3.150.0070.05714.71
5.3.140.0030.05014.72
5.3.130.0130.05714.76
5.3.120.0030.06314.55
5.3.110.0070.03714.58
5.3.100.0070.05314.29
5.3.90.0100.07314.13
5.3.80.0100.07014.05
5.3.70.0130.07014.14
5.3.60.0070.08014.16
5.3.50.0030.06014.16
5.3.40.0030.05314.05
5.3.30.0030.07013.95
5.3.20.0130.03013.81
5.3.10.0070.03013.89
5.3.00.0070.03313.79
5.2.170.0030.05311.15
5.2.160.0030.05711.32
5.2.150.0130.05311.36
5.2.140.0030.03711.39
5.2.130.0030.02711.30
5.2.120.0030.03011.23
5.2.110.0070.02311.14
5.2.100.0000.03011.26
5.2.90.0030.02711.32
5.2.80.0000.03011.20
5.2.70.0030.03011.13
5.2.60.0030.03011.09
5.2.50.0030.02711.14
5.2.40.0070.02311.14
5.2.30.0030.02711.07
5.2.20.0030.02711.20
5.2.10.0000.03011.00
5.2.00.0000.03010.83
5.1.60.0030.02310.10
5.1.50.0000.03010.14
5.1.40.0100.02010.08
5.1.30.0000.02710.49
5.1.20.0000.02710.55
5.1.10.0000.02710.17
5.1.00.0030.02310.30
5.0.50.0000.0208.65
5.0.40.0070.0138.65
5.0.30.0030.0278.40
5.0.20.0000.0208.39
5.0.10.0000.0208.30
5.0.00.0030.0278.21
4.4.90.0000.0177.79
4.4.80.0030.0137.79
4.4.70.0030.0137.79
4.4.60.0000.0177.79
4.4.50.0000.0177.79
4.4.40.0030.0237.79
4.4.30.0030.0137.79
4.4.20.0000.0177.79
4.4.10.0070.0107.79
4.4.00.0030.0237.79
4.3.110.0030.0137.79
4.3.100.0030.0107.79
4.3.90.0000.0137.79
4.3.80.0000.0237.79
4.3.70.0000.0137.79
4.3.60.0030.0107.79
4.3.50.0000.0177.79
4.3.40.0000.0237.79
4.3.30.0000.0207.79
4.3.20.0000.0177.79
4.3.10.0000.0137.79
4.3.00.0000.0137.79

preferences:
52.41 ms | 401 KiB | 5 Q