3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = "<root> <parent> <child name='Child1' /> <child name='Child2' /> <subparent> <child name='Child3' /> </subparent> </parent> <child name='Child4' /> </root>"; $xml = new DOMDocument(); $xml->load('$xml'); $htp = $xml->getElementsByTagName('root')[0]; print_r($htp);

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.0110.00716.62
8.3.50.0090.00921.93
8.3.40.0040.01118.80
8.3.30.0040.01118.82
8.3.20.0070.00020.45
8.3.10.0000.00723.76
8.3.00.0030.00619.50
8.2.180.0110.00717.00
8.2.170.0000.01522.96
8.2.160.0110.00320.64
8.2.150.0040.00424.18
8.2.140.0000.00824.66
8.2.130.0060.00319.61
8.2.120.0030.00626.35
8.2.110.0060.01222.50
8.2.100.0150.00017.93
8.2.90.0040.00419.25
8.2.80.0070.00417.97
8.2.70.0100.00017.63
8.2.60.0030.00618.05
8.2.50.0000.00818.07
8.2.40.0090.00019.52
8.2.30.0030.00320.84
8.2.20.0050.00317.79
8.2.10.0040.00418.16
8.2.00.0040.00418.30
8.1.280.0160.00025.92
8.1.270.0080.00424.04
8.1.260.0070.00028.09
8.1.250.0090.00028.09
8.1.240.0080.00023.98
8.1.230.0040.00917.90
8.1.220.0040.00417.79
8.1.210.0030.00518.77
8.1.200.0090.00017.35
8.1.190.0050.00317.22
8.1.180.0030.00618.10
8.1.170.0040.00418.76
8.1.160.0000.00722.11
8.1.150.0000.00818.87
8.1.140.0050.00319.64
8.1.130.0050.00317.72
8.1.120.0040.00617.45
8.1.110.0000.00717.44
8.1.100.0060.00317.52
8.1.90.0000.00717.55
8.1.80.0000.00717.54
8.1.70.0020.00517.47
8.1.60.0000.00817.73
8.1.50.0050.00317.58
8.1.40.0060.00317.61
8.1.30.0060.00317.80
8.1.20.0040.00417.70
8.1.10.0040.00417.59
8.1.00.0090.00017.45
8.0.300.0070.00018.77
8.0.290.0000.00716.60
8.0.280.0030.00318.56
8.0.270.0090.00017.29
8.0.260.0030.00317.30
8.0.250.0000.00717.12
8.0.240.0000.00717.10
8.0.230.0020.00517.07
8.0.220.0000.00717.03
8.0.210.0080.00016.89
8.0.200.0030.00316.92
8.0.190.0030.00516.95
8.0.180.0050.00516.91
8.0.170.0040.00416.88
8.0.160.0070.00016.83
8.0.150.0000.00717.02
8.0.140.0060.00316.84
8.0.130.0030.00313.38
8.0.120.0080.00016.87
8.0.110.0040.00417.06
8.0.100.0000.00816.80
8.0.90.0050.00216.74
8.0.80.0120.00917.05
8.0.70.0080.00016.78
8.0.60.0070.00017.05
8.0.50.0000.00717.00
8.0.30.0100.00817.17
8.0.20.0140.00517.40
8.0.10.0030.00517.06
8.0.00.0120.00816.95
7.4.330.0050.00016.89
7.4.320.0050.00216.54
7.4.300.0030.00316.50
7.4.290.0070.00016.57
7.4.280.0040.00416.71
7.4.270.0000.00716.54
7.4.260.0030.00316.70
7.4.250.0000.00716.52
7.4.240.0020.00616.62
7.4.230.0000.00716.74
7.4.220.0070.01116.66
7.4.210.0100.00516.64
7.4.200.0000.00716.68
7.4.160.0130.00316.68
7.4.150.0140.00417.40
7.4.140.0100.01217.86
7.4.130.0090.00916.66
7.4.120.0080.01016.71
7.4.110.0130.00416.69
7.4.100.0090.00916.52
7.4.90.0120.00816.67
7.4.80.0070.01119.39
7.4.70.0090.00916.37
7.4.60.0110.00716.82
7.4.50.0140.00016.48
7.4.40.0170.00016.64
7.4.30.0030.01516.70
7.4.10.0070.01115.03
7.4.00.0080.00814.95
7.3.330.0000.00613.17
7.3.320.0020.00213.40
7.3.310.0040.00416.43
7.3.300.0000.00716.27
7.3.290.0070.00016.49
7.3.280.0110.00616.40
7.3.270.0120.00617.40
7.3.260.0120.00916.68
7.3.250.0120.00616.45
7.3.240.0120.00716.31
7.3.230.0100.00716.39
7.3.210.0100.00716.49
7.3.200.0110.00516.31
7.3.190.0140.00316.66
7.3.180.0100.00616.59
7.3.170.0090.00916.59
7.3.160.0130.01016.47
7.3.130.0100.01014.87
7.3.120.0070.01115.05
7.3.110.0030.01414.77
7.3.100.0060.00614.86
7.3.90.0090.00614.72
7.3.80.0070.00314.88
7.3.70.0030.01014.76
7.3.60.0000.01014.89
7.3.50.0070.00814.75
7.3.40.0080.00614.72
7.3.30.0040.01114.71
7.3.20.0030.01016.52
7.3.10.0060.00616.82
7.3.00.0070.01116.73
7.2.330.0350.01616.75
7.2.320.0060.01316.30
7.2.310.0110.00616.82
7.2.300.0070.01016.71
7.2.290.0180.00016.73
7.2.260.0000.01314.97
7.2.250.0030.01514.60
7.2.240.0090.00614.91
7.2.230.0040.01215.11
7.2.220.0030.00614.94
7.2.210.0030.00914.99
7.2.200.0080.00614.86
7.2.190.0030.00615.00
7.2.180.0070.00315.04
7.2.170.0000.01414.99
7.2.160.0060.00314.98
7.2.150.0030.00916.79
7.2.140.0070.00716.89
7.2.130.0120.00616.72
7.2.120.0070.01016.54
7.2.110.0060.00616.89
7.2.100.0070.00716.68
7.2.90.0070.00717.00
7.2.80.0100.00316.75
7.2.70.0030.00616.82
7.2.60.0030.01216.83
7.2.50.0090.00416.89
7.2.40.0060.00617.03
7.2.30.0080.00417.02
7.2.20.0040.00816.82
7.2.10.0030.00616.84
7.2.00.0090.00718.05
7.1.330.0070.00315.76
7.1.320.0030.01215.55
7.1.310.0000.01215.61
7.1.300.0100.00315.77
7.1.290.0030.01015.84
7.1.280.0040.01115.87
7.1.270.0060.00315.68
7.1.260.0030.01215.80
7.1.250.0060.00615.93
7.1.240.0040.00815.86
7.1.230.0070.00715.95
7.1.220.0080.00615.65
7.1.210.0060.00315.93
7.1.200.0070.00715.76
7.1.190.0000.00915.93
7.1.180.0060.00615.90
7.1.170.0060.00615.88
7.1.160.0060.00615.82
7.1.150.0040.00815.94
7.1.140.0060.00615.89
7.1.130.0060.00915.71
7.1.120.0080.00315.67
7.1.110.0070.00715.91
7.1.100.0020.01017.02
7.1.90.0060.00615.96
7.1.80.0080.00615.74
7.1.70.0020.00816.50
7.1.60.0100.00817.65
7.1.50.0150.00825.25
7.1.40.0060.00615.91
7.1.30.0040.01115.82
7.1.20.0120.00315.86
7.1.10.0030.01315.91
7.1.00.0070.04019.19
7.0.330.0170.00015.39
7.0.320.0030.01015.31
7.0.310.0070.00715.33
7.0.300.0030.01115.37
7.0.290.0060.00615.41
7.0.280.0030.01015.45
7.0.270.0110.00415.37
7.0.260.0040.00815.41
7.0.250.0030.00615.40
7.0.240.0060.00315.37
7.0.230.0030.00515.36
7.0.220.0040.00415.56
7.0.210.0000.01115.32
7.0.200.0130.00815.11
7.0.190.0060.01015.41
7.0.180.0060.00615.09
7.0.170.0060.00315.53
7.0.160.0120.00315.41
7.0.150.0060.00315.40
7.0.140.0080.00615.22
7.0.130.0000.01315.21
7.0.120.0030.00915.52
7.0.110.0120.00015.34
7.0.100.0070.00715.14
7.0.90.0030.00615.33
7.0.80.0000.01515.40
7.0.70.0070.00715.30
7.0.60.0090.02117.70
7.0.50.0100.03316.70
7.0.40.0070.02416.84
7.0.30.0180.03616.72
7.0.20.0170.03516.78
7.0.10.0050.04816.84
7.0.00.0030.04416.84
5.6.400.0030.00614.61
5.6.390.0030.00914.05
5.6.380.0000.00914.40
5.6.370.0060.00314.75
5.6.360.0100.00314.19
5.6.350.0070.00714.65
5.6.340.0060.00314.12
5.6.330.0030.00614.63
5.6.320.0000.01714.40
5.6.310.0030.01014.41
5.6.300.0140.00014.66
5.6.290.0060.01214.52
5.6.280.0060.01817.82
5.6.270.0090.00614.47
5.6.260.0110.00714.75
5.6.250.0070.00714.39
5.6.240.0030.01214.52
5.6.230.0100.00314.31
5.6.220.0070.01014.79
5.6.210.0050.02417.57
5.6.200.0130.02216.33
5.6.190.0080.02317.40
5.6.180.0150.03517.31
5.6.170.0100.03417.51
5.6.160.0070.04017.40
5.6.150.0070.03016.28
5.6.140.0040.03716.33
5.6.130.0040.02416.23
5.6.120.0070.04717.76
5.6.110.0050.04117.70
5.6.100.0120.04317.75
5.6.90.0050.03117.69
5.6.80.0080.04717.40
5.6.70.0030.01014.25
5.6.60.0060.00614.26
5.6.50.0060.00314.29
5.6.40.0100.00314.24
5.6.30.0000.01514.45
5.6.20.0030.01014.39
5.6.10.0080.00414.38
5.6.00.0070.00714.38
5.5.380.0040.00914.45
5.5.370.0100.00314.45
5.5.360.0060.00914.45
5.5.350.0130.02817.32
5.5.340.0090.03916.19
5.5.330.0060.02517.33
5.5.320.0070.04417.47
5.5.310.0080.02717.31
5.5.300.0010.03116.26
5.5.290.0030.02616.25
5.5.280.0070.04317.75
5.5.270.0100.04117.67
5.5.260.0180.03317.66
5.5.250.0100.04317.44
5.5.240.0180.03317.11
5.5.230.0000.01014.47
5.5.220.0000.01114.31
5.5.210.0000.01314.26
5.5.200.0030.01014.09
5.5.190.0050.00514.25
5.5.180.0030.00714.26
5.5.170.0000.01114.30
5.5.160.0060.00614.12
5.5.150.0090.00314.40
5.5.140.0100.00714.11
5.5.130.0000.00914.13
5.5.120.0040.01114.11
5.5.110.0070.00714.31
5.5.100.0030.00514.25
5.5.90.0030.00514.36
5.5.80.0060.00614.48
5.5.70.0000.01214.12
5.5.60.0070.00714.34
5.5.50.0070.00714.14
5.5.40.0080.00414.38
5.5.30.0070.00714.31
5.5.20.0040.01114.25
5.5.10.0000.01014.37
5.5.00.0070.00714.02

preferences:
43.76 ms | 401 KiB | 5 Q