3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xmlStr = '<root><node> <child1></child1> <findme>first</findme> <child2></child2> </node> <node> <child1> <findme>second</findme> </child1> <child2></child2> </node> <node> <child1></child1> <child2> <another> <findme>third</findme> </another> </child2> </node></root>'; $dom = new DOMDocument(); $dom->LoadXML($xmlStr); $nodes = $dom->getElementsByTagName('node'); foreach($nodes as $node) { $findme = $node->getElementsByTagName("findme")->item(0); echo $findme->textContent."\r"; } ?>

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.4.20.0130.00717.99
8.4.10.0070.00319.76
8.3.140.0070.00716.61
8.3.130.0060.00318.51
8.3.120.0030.00619.28
8.3.110.0080.00020.94
8.3.100.0060.00316.66
8.3.90.0110.00726.77
8.3.80.0090.00017.97
8.3.70.0090.00618.45
8.3.60.0110.00716.75
8.3.50.0090.00921.22
8.3.40.0110.00418.94
8.3.30.0140.00018.72
8.3.20.0040.00420.71
8.3.10.0040.00421.94
8.3.00.0070.00022.20
8.2.260.0110.00718.71
8.2.250.0110.00418.75
8.2.240.0030.00617.29
8.2.230.0040.00422.58
8.2.220.0060.00337.54
8.2.210.0130.00726.77
8.2.200.0050.00516.88
8.2.190.0120.00317.13
8.2.180.0110.00718.54
8.2.170.0070.00722.96
8.2.160.0140.00020.70
8.2.150.0000.00824.18
8.2.140.0040.00424.66
8.2.130.0040.00426.16
8.2.120.0090.00019.56
8.2.110.0060.00321.19
8.2.100.0100.00218.01
8.2.90.0050.00317.88
8.2.80.0060.00618.73
8.2.70.0000.00917.88
8.2.60.0060.00318.14
8.2.50.0030.00618.07
8.2.40.0050.00320.07
8.2.30.0050.00218.17
8.2.20.0050.00318.36
8.2.10.0000.00818.37
8.2.00.0000.00818.05
8.1.310.0080.00016.86
8.1.300.0040.00420.63
8.1.290.0030.00930.84
8.1.280.0140.00325.92
8.1.270.0080.00024.09
8.1.260.0060.00326.35
8.1.250.0040.00428.09
8.1.240.0030.00719.26
8.1.230.0080.00419.22
8.1.220.0050.00318.02
8.1.210.0000.00818.77
8.1.200.0030.00517.35
8.1.190.0000.00917.36
8.1.180.0060.00318.10
8.1.170.0000.00819.04
8.1.160.0040.00419.11
8.1.150.0000.00820.37
8.1.140.0000.00819.84
8.1.130.0000.00717.93
8.1.120.0070.00017.72
8.1.110.0080.00117.69
8.1.100.0100.00317.61
8.1.90.0080.00217.53
8.1.80.0050.00417.72
8.1.70.0020.00717.68
8.1.60.0090.00317.73
8.1.50.0070.00517.71
8.1.40.0070.00517.67
8.1.30.0080.00517.85
8.1.20.0100.00617.79
8.1.10.0110.00317.79
8.1.00.0110.00417.62
8.0.300.0000.00718.77
8.0.290.0030.00517.00
8.0.280.0000.00918.73
8.0.270.0030.00317.00
8.0.260.0030.00617.41
8.0.250.0030.00317.14
8.0.240.0090.00317.00
8.0.230.0070.00617.12
8.0.220.0080.00417.02
8.0.210.0040.00817.01
8.0.200.0100.00117.11
8.0.190.0110.00417.10
8.0.180.0040.01017.04
8.0.170.0080.00517.11
8.0.160.0090.00416.93
8.0.150.0040.00917.02
8.0.140.0070.00517.03
8.0.130.0060.00715.87
8.0.120.0060.00617.04
8.0.110.0090.00117.01
8.0.100.0060.00516.92
8.0.90.0050.00616.97
8.0.80.0070.00617.02
8.0.70.0080.00417.03
8.0.60.0110.00217.09
8.0.50.0070.00617.02
8.0.30.0120.00717.17
8.0.20.0130.00817.21
8.0.10.0150.00817.11
8.0.00.0110.00717.15
7.4.330.0020.00215.55
7.4.320.0070.00516.70
7.4.300.0050.00516.76
7.4.290.0090.00516.73
7.4.280.0060.00816.75
7.4.270.0090.00516.66
7.4.260.0070.00616.68
7.4.250.0090.00516.68
7.4.240.0060.00716.73
7.4.230.0080.00616.64
7.4.220.0090.00616.72
7.4.210.0110.00416.76
7.4.200.0060.00616.79
7.4.190.0090.00516.74
7.4.180.0090.00516.70
7.4.160.0130.00616.72
7.4.150.0090.00916.87
7.4.140.0150.00417.22
7.4.130.0140.00616.71
7.4.120.0120.00816.64
7.4.110.0070.01216.60
7.4.100.0110.00716.66
7.4.90.0120.00616.61
7.4.80.0090.00917.33
7.4.70.0140.00516.63
7.4.60.0100.00716.61
7.4.50.0150.00316.52
7.4.40.0130.00616.54
7.4.30.0140.00616.56
7.4.20.0080.00716.53
7.4.10.0110.00716.60
7.4.00.0100.00816.09
7.3.330.0080.00415.35
7.3.320.0080.00415.36
7.3.310.0100.00216.44
7.3.300.0070.00616.41
7.3.290.0090.00616.47
7.3.280.0120.00716.51
7.3.270.0110.00916.63
7.3.260.0100.01016.58
7.3.250.0130.00716.56
7.3.240.0100.00916.51
7.3.230.0100.00716.50
7.3.220.0150.00316.35
7.3.210.0150.00616.53
7.3.200.0130.00616.46
7.3.190.0110.00716.49
7.3.180.0130.00516.54
7.3.170.0140.00416.52
7.3.160.0070.00916.44
7.3.150.0140.00416.41
7.3.140.0120.00616.44
7.3.130.0120.00516.33
7.3.120.0130.00616.37
7.3.110.0130.00816.24
7.3.100.0130.00716.27
7.3.90.0160.00416.15
7.3.80.0130.00516.05
7.3.70.0170.00616.02
7.3.60.0140.00916.19
7.3.50.0120.00616.01
7.3.40.0140.00316.01
7.3.30.0110.00616.14
7.3.20.0260.00416.98
7.3.10.0100.00716.81
7.3.00.0160.00416.99
7.2.340.0090.01116.65
7.2.330.0130.00716.69
7.2.320.0130.00716.66
7.2.310.0170.00616.64
7.2.300.0090.01216.68
7.2.290.0110.00916.66
7.2.280.0170.00316.62
7.2.270.0140.00616.59
7.2.260.0120.00816.56
7.2.250.0170.00316.67
7.2.240.0140.00616.54
7.2.230.0150.00616.67
7.2.220.0070.01116.36
7.2.210.0150.00616.17
7.2.200.0130.01116.48
7.2.190.0130.00716.30
7.2.180.0100.00916.25
7.2.170.0130.00816.35
7.2.160.0130.00716.22
7.2.150.0170.00617.10
7.2.140.0160.00617.28
7.2.130.0170.00517.38
7.2.120.0110.01317.31
7.2.110.0120.01017.28
7.2.100.0170.00717.29
7.2.90.0180.00517.34
7.2.80.0170.01016.88
7.2.70.0100.01017.38
7.2.60.0120.00816.99
7.2.50.0120.00916.92
7.2.40.0170.00917.38
7.2.30.0180.00817.37
7.2.20.0120.00817.47
7.2.10.0120.01017.93
7.2.00.0160.00718.37
7.1.330.0140.00616.24
7.1.320.0130.00516.23
7.1.310.0180.00416.17
7.1.300.0130.00716.15
7.1.290.0110.00716.10
7.1.280.0110.00916.11
7.1.270.0170.00616.22
7.1.260.0130.00816.19
7.1.250.0120.00916.08
7.1.240.0110.00816.09
7.1.230.0110.00716.25
7.1.220.0080.01116.16
7.1.210.0120.00616.15
7.1.200.0100.00816.11
7.1.190.0130.00716.20
7.1.180.0170.00615.73
7.1.170.0100.01115.81
7.1.160.0110.00816.08
7.1.150.0150.00616.18
7.1.140.0140.00716.05
7.1.130.0160.00816.54
7.1.120.0100.00917.27
7.1.110.0100.00817.05
7.1.100.0090.00717.07
7.1.90.0110.00617.09
7.1.80.0110.00717.15
7.1.70.0110.00716.63
7.1.60.0180.00624.33
7.1.50.0140.00924.15
7.1.40.0190.00724.15
7.1.30.0170.00924.08
7.1.20.0200.00924.11
7.1.10.0100.00816.44
7.1.00.0090.01116.34
7.0.330.0140.00616.14
7.0.320.0110.00515.88
7.0.310.0110.00815.44
7.0.300.0090.00815.37
7.0.290.0130.00515.78
7.0.280.0270.00615.90
7.0.270.0110.00816.02
7.0.260.0090.00716.98
7.0.250.0090.00716.82
7.0.240.0080.00716.76
7.0.230.0090.00716.77
7.0.220.0090.00616.79
7.0.210.0110.00616.30
7.0.200.0080.00916.27
7.0.190.0100.00816.35
7.0.180.0070.00916.11
7.0.170.0090.00916.12
7.0.160.0080.00916.09
7.0.150.0080.00916.15
7.0.140.0110.00616.13
7.0.130.0140.00916.21
7.0.120.0080.00816.27
7.0.110.0090.00816.10
7.0.100.0090.00816.13
7.0.90.0090.00716.12
7.0.80.0130.00815.88
7.0.70.0080.00816.07
7.0.60.0080.00816.05
7.0.50.0070.00916.14
7.0.40.0070.00916.21
7.0.30.0110.00516.14
7.0.20.0090.00716.15
7.0.10.0130.00816.14
7.0.00.0080.00916.14
5.6.400.0120.00615.66
5.6.390.0140.00515.51
5.6.380.0110.00715.59
5.6.370.0120.00815.54
5.6.360.0130.00715.54
5.6.350.0050.01615.53
5.6.340.0160.00815.59
5.6.330.0120.00715.59
5.6.320.0110.00815.45
5.6.310.0120.00615.50
5.6.300.0120.03217.79
5.6.290.0120.03517.83
5.6.280.0130.02917.77
5.6.270.0140.03217.82
5.6.260.0160.02417.78
5.6.250.0130.02817.84
5.6.240.0120.03517.82
5.6.230.0100.03217.88
5.6.220.0130.02617.81
5.6.210.0120.02717.87
5.6.200.0130.02717.92
5.6.190.0110.02817.93
5.6.180.0120.02817.82
5.6.170.0130.03017.95
5.6.160.0170.02817.97
5.6.150.0110.03017.97
5.6.140.0140.03017.96
5.6.130.0120.02717.91
5.6.120.0130.03017.97
5.6.110.0130.03017.86
5.6.100.0110.03217.85
5.6.90.0150.02417.85
5.6.80.0120.02917.51
5.6.70.0150.02517.61
5.6.60.0090.03017.58
5.6.50.0120.02817.45
5.6.40.0100.02717.57
5.6.30.0110.02617.54
5.6.20.0100.02817.57
5.6.10.0100.03017.52
5.6.00.0110.02617.52

preferences:
20.01 ms | 403 KiB | 5 Q