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'); 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.0150.00316.61
8.3.50.0150.00322.11
8.3.40.0160.00618.93
8.3.30.0080.00818.79
8.3.20.0040.00420.57
8.3.10.0030.00523.66
8.3.00.0040.00419.38
8.2.180.0140.00416.88
8.2.170.0080.00822.96
8.2.160.0030.01020.36
8.2.150.0080.00024.18
8.2.140.0070.00024.66
8.2.130.0080.00017.63
8.2.120.0080.00026.35
8.2.110.0070.00319.39
8.2.100.0080.00318.03
8.2.90.0030.00519.17
8.2.80.0040.00417.97
8.2.70.0030.00617.63
8.2.60.0050.00317.79
8.2.50.0060.00318.07
8.2.40.0070.00319.48
8.2.30.0070.00020.70
8.2.20.0060.00317.74
8.2.10.0040.00418.21
8.2.00.0070.00018.20
8.1.280.0090.00625.92
8.1.270.0030.00724.04
8.1.260.0000.00728.09
8.1.250.0070.00428.09
8.1.240.0090.00019.30
8.1.230.0090.00317.79
8.1.220.0030.00517.91
8.1.210.0040.00418.77
8.1.200.0060.00317.35
8.1.190.0070.00717.13
8.1.180.0040.00418.10
8.1.170.0030.00518.71
8.1.160.0070.00022.14
8.1.150.0030.00618.86
8.1.140.0060.00319.71
8.1.130.0000.00717.87
8.1.120.0100.00017.55
8.1.110.0000.00817.59
8.1.100.0070.00017.55
8.1.90.0030.00517.46
8.1.80.0040.00417.32
8.1.70.0000.00717.50
8.1.60.0040.00417.52
8.1.50.0030.00617.55
8.1.40.0000.00817.46
8.1.30.0030.00517.80
8.1.20.0030.00617.63
8.1.10.0040.00417.66
8.1.00.0050.00317.61
8.0.300.0070.00018.77
8.0.290.0000.00716.75
8.0.280.0070.00018.57
8.0.270.0040.00417.41
8.0.260.0000.00617.23
8.0.250.0000.00817.12
8.0.240.0000.00716.91
8.0.230.0000.00817.07
8.0.220.0000.00717.08
8.0.210.0000.00816.88
8.0.200.0000.00716.94
8.0.190.0040.00417.05
8.0.180.0030.00817.11
8.0.170.0040.00417.13
8.0.160.0040.00416.84
8.0.150.0030.00417.05
8.0.140.0040.00416.81
8.0.130.0030.00313.53
8.0.120.0030.00516.88
8.0.110.0070.00017.01
8.0.100.0040.00416.99
8.0.90.0040.00417.11
8.0.80.0130.00316.92
8.0.70.0090.00016.82
8.0.60.0040.00416.94
8.0.50.0000.00716.84
8.0.30.0110.00817.05
8.0.20.0120.00817.40
8.0.10.0040.00417.14
8.0.00.0120.00916.82
7.4.330.0000.00516.91
7.4.320.0060.00016.70
7.4.300.0000.00616.60
7.4.290.0080.00016.46
7.4.280.0000.00816.70
7.4.270.0030.00316.76
7.4.260.0080.00016.56
7.4.250.0040.00416.64
7.4.240.0040.00416.60
7.4.230.0070.00016.43
7.4.220.0160.00716.59
7.4.210.0080.00716.63
7.4.200.0030.00316.74
7.4.160.0120.00416.61
7.4.150.0030.01417.40
7.4.140.0080.01317.86
7.4.130.0110.00616.73
7.4.120.0100.00716.63
7.4.110.0110.00716.62
7.4.100.0060.01616.40
7.4.90.0100.01216.41
7.4.80.0120.01419.39
7.4.70.0040.01316.54
7.4.60.0050.01116.49
7.4.50.0030.01416.84
7.4.40.0170.00016.53
7.4.30.0040.01816.74
7.4.00.0060.01014.95
7.3.330.0030.00313.24
7.3.320.0050.00013.16
7.3.310.0030.00516.39
7.3.300.0070.00016.27
7.3.290.0030.00316.31
7.3.280.0090.01016.35
7.3.270.0070.01617.40
7.3.260.0120.00916.33
7.3.250.0090.01116.28
7.3.240.0070.01216.23
7.3.230.0090.00916.39
7.3.210.0060.01216.41
7.3.200.0190.00316.34
7.3.190.0030.01716.28
7.3.180.0070.00916.42
7.3.170.0120.00416.57
7.3.160.0100.00716.43
7.2.330.0100.01416.54
7.2.320.0070.01416.75
7.2.310.0080.00816.41
7.2.300.0090.00916.84
7.2.290.0150.00316.69
7.2.60.0070.01016.49
7.2.00.0000.01619.38
7.1.200.0060.01015.81
7.1.100.0000.01118.23
7.1.70.0040.00417.08
7.1.60.0140.01019.48
7.1.50.0070.02734.34
7.1.00.0000.08022.65
7.0.200.0410.00614.67
7.0.60.0130.05719.95
7.0.50.0030.06017.82
7.0.40.0000.05320.35
7.0.30.0270.05320.25
7.0.20.0430.07020.14
7.0.10.0000.06720.18
7.0.00.0170.07320.10
5.6.210.0030.04020.69
5.6.200.0030.05318.16
5.6.190.0030.09020.65
5.6.180.0300.05320.79
5.6.170.0270.08020.52
5.6.160.0070.08020.57
5.6.150.0000.04718.26
5.6.140.0070.06718.23
5.6.130.0030.04018.19
5.6.120.0070.06720.94
5.6.110.0100.08021.11
5.6.100.0100.05721.11
5.6.90.0100.06321.14
5.6.80.0170.07320.39
5.5.350.0130.04020.46
5.5.340.0070.06717.99
5.5.330.0130.08720.28
5.5.320.0100.03720.43
5.5.310.0270.04320.37
5.5.300.0000.04018.04
5.5.290.0030.04018.00
5.5.280.0100.04321.01
5.5.270.0030.04720.80
5.5.260.0070.08320.92
5.5.250.0200.05020.65
5.5.240.0300.07020.39

preferences:
61.27 ms | 401 KiB | 5 Q