3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dom = new DOMDocument(); $dom->loadXML('<root><stuff/><stuff/></root>'); $nodes = $dom->getElementsByTagName('stuff'); array_walk($nodes, 'var_dump'); // expected int(2) from $nodes->length

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.00718.55
8.3.50.0150.00822.01
8.3.40.0110.00418.97
8.3.30.0140.00718.57
8.3.20.0040.00420.42
8.3.10.0040.00421.95
8.3.00.0040.00417.89
8.2.180.0060.01218.41
8.2.170.0040.01222.96
8.2.160.0060.00820.64
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0030.00617.63
8.2.110.0080.00020.64
8.2.100.0060.00617.84
8.2.90.0000.00919.21
8.2.80.0040.00417.97
8.2.70.0050.00318.16
8.2.60.0000.00818.05
8.2.50.0050.00218.13
8.2.40.0030.00621.06
8.2.30.0030.00618.13
8.2.20.0020.00517.70
8.2.10.0000.00818.26
8.2.00.0040.00418.18
8.1.280.0150.00025.92
8.1.270.0090.00622.16
8.1.260.0050.00226.35
8.1.250.0080.00028.09
8.1.240.0060.00324.01
8.1.230.0110.00017.95
8.1.220.0060.00317.79
8.1.210.0000.00918.77
8.1.200.0030.00617.38
8.1.190.0000.00817.48
8.1.180.0040.00418.10
8.1.170.0040.00418.71
8.1.160.0000.00718.96
8.1.150.0040.00418.90
8.1.140.0030.00517.57
8.1.130.0080.00017.57
8.1.120.0070.00017.50
8.1.110.0050.00317.62
8.1.100.0040.00417.62
8.1.90.0040.00417.59
8.1.80.0040.00417.51
8.1.70.0040.00417.48
8.1.60.0000.00917.73
8.1.50.0050.00217.57
8.1.40.0000.01017.72
8.1.30.0030.00517.86
8.1.20.0000.00817.82
8.1.10.0050.00317.68
8.1.00.0040.00417.69
8.0.300.0070.00019.91
8.0.290.0000.00816.88
8.0.280.0050.00218.59
8.0.270.0030.00317.46
8.0.260.0000.00816.97
8.0.250.0080.00017.13
8.0.240.0030.00317.02
8.0.230.0070.00016.95
8.0.220.0000.00716.89
8.0.210.0040.00416.99
8.0.200.0000.00717.12
8.0.190.0090.00016.99
8.0.180.0040.00417.11
8.0.170.0000.00716.98
8.0.160.0040.00416.96
8.0.150.0000.00716.94
8.0.140.0000.00817.04
8.0.130.0030.00313.49
8.0.120.0000.00917.00
8.0.110.0050.00316.85
8.0.100.0050.00316.91
8.0.90.0040.00417.05
8.0.80.0030.01017.07
8.0.70.0080.00016.82
8.0.60.0030.00617.02
8.0.50.0060.00317.05
8.0.30.0120.00417.20
8.0.20.0110.00817.42
8.0.10.0040.00417.02
8.0.00.0100.01016.89
7.4.330.0000.00615.25
7.4.320.0000.00616.55
7.4.300.0000.00716.52
7.4.290.0030.00316.66
7.4.280.0000.00916.61
7.4.270.0030.00316.58
7.4.260.0050.00216.55
7.4.250.0000.00816.54
7.4.240.0060.00316.61
7.4.230.0040.00416.82
7.4.220.0190.00016.76
7.4.210.0070.00716.63
7.4.200.0030.00316.50
7.4.160.0030.01316.76
7.4.150.0100.00717.40
7.4.140.0110.01017.86
7.4.130.0110.01016.39
7.4.120.0110.00616.64
7.4.110.0100.00716.65
7.4.100.0170.00016.61
7.4.90.0130.00416.57
7.4.80.0130.00719.39
7.4.70.0090.00916.63
7.4.60.0090.00916.61
7.4.50.0030.00616.65
7.4.40.0160.00016.47
7.4.30.0030.01416.64
7.4.00.0080.00615.01
7.3.330.0000.00613.27
7.3.320.0000.00513.15
7.3.310.0030.00316.18
7.3.300.0060.00016.36
7.3.290.0100.00816.36
7.3.280.0070.01116.35
7.3.270.0100.00717.40
7.3.260.0090.01316.61
7.3.250.0060.01216.42
7.3.240.0170.00016.46
7.3.230.0100.00716.66
7.3.210.0150.00316.54
7.3.200.0130.00716.35
7.3.190.0100.01016.45
7.3.180.0170.00416.39
7.3.170.0110.00416.33
7.3.160.0090.00616.34
7.3.10.0000.01016.30
7.3.00.0030.00816.69
7.2.330.0060.01216.85
7.2.320.0110.00816.48
7.2.310.0080.00816.87
7.2.300.0120.00616.62
7.2.290.0100.00716.73
7.2.130.0040.00816.97
7.2.120.0070.00716.93
7.2.110.0000.01016.88
7.2.100.0090.00316.81
7.2.90.0100.00317.15
7.2.80.0090.00017.05
7.2.70.0030.01017.08
7.2.60.0000.01216.82
7.2.50.0120.00616.84
7.2.40.0030.01016.92
7.2.30.0040.01116.70
7.2.20.0060.00316.72
7.2.10.0090.00616.52
7.2.00.0050.00718.06
7.1.250.0030.00715.73
7.1.100.0110.00018.16
7.1.70.0050.00217.10
7.1.60.0070.00719.27
7.1.50.0100.01317.04
7.1.00.0030.07322.50
7.0.200.0060.00316.51
7.0.60.0070.04320.03
7.0.50.0070.05717.92
7.0.40.0100.05720.46
7.0.30.0230.08320.40
7.0.20.0330.07320.15
7.0.10.0030.09320.21
7.0.00.0130.05020.25
5.6.280.0070.06721.17
5.6.210.0030.06320.52
5.6.200.0030.06718.29
5.6.190.0270.04020.34
5.6.180.0200.03720.42
5.6.170.0300.06720.66
5.6.160.0070.06720.51
5.6.150.0130.05718.29
5.6.140.0070.03718.25
5.6.130.0170.08018.29
5.6.120.0070.03721.22
5.6.110.0170.07721.02
5.6.100.0070.08321.01
5.6.90.0130.06321.02
5.6.80.0170.03720.61
5.6.70.3600.04020.41
5.5.350.0370.07320.58
5.5.340.0030.08018.14
5.5.330.0030.07320.32
5.5.320.0200.04320.31
5.5.310.0270.03020.46
5.5.300.0000.04718.05
5.5.290.0130.07318.02
5.5.280.0130.05020.91
5.5.270.0070.04021.04
5.5.260.0030.08721.04
5.5.250.0100.07320.56
5.5.240.0170.07020.19
5.4.450.0200.06019.71
5.4.440.0200.05719.37
5.4.430.0330.05019.53
5.4.420.0230.05319.54
5.4.410.0270.05319.57
5.4.400.0230.05019.16
5.4.390.0200.05719.00
5.4.380.0070.06719.22
5.4.370.0230.06719.13
5.4.360.0200.05319.32
5.4.350.0330.04719.35
5.4.340.0230.05319.13
5.4.320.0200.05019.22
5.4.310.0100.05019.35
5.4.300.0130.05719.39
5.4.290.0170.05319.15
5.4.280.0170.05719.18
5.4.270.0100.07019.29
5.4.260.0130.07319.35
5.4.250.0230.04718.98
5.4.240.0170.05318.99
5.4.230.0200.05018.96
5.4.220.0230.05719.00
5.4.210.0200.06319.13
5.4.200.0130.05319.32
5.4.190.0370.04718.97
5.4.180.0130.05318.99
5.4.170.0170.05019.23
5.4.160.0230.04319.38
5.4.150.0070.06319.34
5.4.140.0100.05716.63
5.4.130.0200.04316.40
5.4.120.0170.04716.43
5.4.110.0100.05716.34
5.4.100.0100.05316.63
5.4.90.0130.05016.61
5.4.80.0170.04016.55
5.4.70.0000.04716.61
5.4.60.0000.04316.47
5.4.50.0000.03316.38
5.4.40.0230.06016.48
5.4.30.0230.05016.38
5.4.20.0400.06316.48

preferences:
57.58 ms | 401 KiB | 5 Q