3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div><div><div><t:p value="varname" /></div></div>'; $xml = '<root xmlns:t="template">' . $xml . '</root>'; $dom = new DOMDocument(); $dom->loadXML($xml); $elements = $dom->getElementsByTagNameNS('template', '*'); foreach ($elements as $element) { $element->nodeValue = 'Foo'; } var_dump($dom->saveXML());

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.0120.00916.87
8.3.50.0110.00622.09
8.3.40.0150.00419.07
8.3.30.0000.01419.42
8.3.20.0080.00020.59
8.3.10.0000.00923.64
8.3.00.0090.00019.63
8.2.180.0110.00416.88
8.2.170.0090.00622.96
8.2.160.0140.00720.69
8.2.150.0040.00424.18
8.2.140.0040.00424.66
8.2.130.0050.00326.16
8.2.120.0000.00822.51
8.2.110.0030.00621.34
8.2.100.0090.00318.34
8.2.90.0000.00819.47
8.2.80.0000.00817.97
8.2.70.0000.00817.88
8.2.60.0030.00618.18
8.2.50.0040.00418.41
8.2.40.0030.00620.84
8.2.30.0000.00819.53
8.2.20.0080.00017.94
8.2.10.0000.00718.35
8.2.00.0060.00318.00
8.1.280.0110.00725.92
8.1.270.0040.00424.04
8.1.260.0040.00426.35
8.1.250.0000.00828.09
8.1.240.0090.00024.09
8.1.230.0040.00720.51
8.1.220.0070.00317.91
8.1.210.0000.00818.77
8.1.200.0060.00317.50
8.1.190.0050.00317.48
8.1.180.0000.00920.39
8.1.170.0070.00318.88
8.1.160.0000.00719.15
8.1.150.0000.00820.39
8.1.140.0050.00317.73
8.1.130.0000.00718.15
8.1.120.0070.00017.68
8.1.110.0030.00617.63
8.1.100.0050.00217.78
8.1.90.0000.00717.63
8.1.80.0000.00717.77
8.1.70.0030.00317.61
8.1.60.0040.00417.74
8.1.50.0040.00417.66
8.1.40.0030.00517.84
8.1.30.0090.00017.84
8.1.20.0040.00418.01
8.1.10.0030.00517.91
8.1.00.0000.00817.79
8.0.300.0040.00418.77
8.0.290.0060.00316.88
8.0.280.0070.00018.73
8.0.270.0030.00317.46
8.0.260.0000.00617.52
8.0.250.0070.00017.32
8.0.240.0000.00717.12
8.0.230.0030.00317.23
8.0.220.0000.00717.07
8.0.210.0000.00817.05
8.0.200.0000.00617.32
8.0.190.0070.00017.09
8.0.180.0040.00417.11
8.0.170.0040.00417.07
8.0.160.0000.00717.23
8.0.150.0040.00417.16
8.0.140.0080.00017.15
8.0.130.0060.00013.65
8.0.120.0030.00617.21
8.0.110.0050.00217.21
8.0.100.0040.00417.02
8.0.90.0000.00717.00
8.0.80.0120.00317.14
8.0.70.0060.00317.22
8.0.60.0000.00817.11
8.0.50.0080.00017.22
8.0.30.0120.00917.43
8.0.20.0100.00917.44
8.0.10.0050.00217.22
8.0.00.0070.01016.99
7.4.330.0000.00515.40
7.4.320.0070.00016.89
7.4.300.0060.00316.75
7.4.290.0030.00316.79
7.4.280.0070.00016.79
7.4.270.0020.00516.98
7.4.260.0070.00016.70
7.4.250.0000.00716.70
7.4.240.0040.00416.80
7.4.230.0000.00716.78
7.4.220.0030.01616.66
7.4.210.0060.01116.81
7.4.200.0040.00416.91
7.4.190.0000.00716.70
7.4.160.0040.01216.68
7.4.150.0120.01217.40
7.4.140.0090.00817.86
7.4.130.0110.00516.75
7.4.120.0120.00716.77
7.4.110.0140.01016.89
7.4.100.0130.01016.66
7.4.90.0120.00616.82
7.4.80.0100.01119.39
7.4.70.0110.00816.83
7.4.60.0030.01516.53
7.4.50.0040.00416.87
7.4.40.0090.00616.71
7.4.30.0150.00016.71
7.4.00.0070.01115.06
7.3.330.0030.00313.43
7.3.320.0000.00613.45
7.3.310.0070.00016.59
7.3.300.0070.00016.62
7.3.290.0100.00316.59
7.3.280.0100.01116.57
7.3.270.0180.00017.40
7.3.260.0130.01016.87
7.3.250.0060.01116.78
7.3.240.0130.00316.74
7.3.230.0110.00616.94
7.3.210.0110.00516.59
7.3.200.0070.01619.39
7.3.190.0050.01616.70
7.3.180.0090.00616.64
7.3.170.0060.00916.69
7.3.160.0160.00016.78
7.3.120.0040.01415.22
7.3.110.0070.01015.13
7.3.100.0090.00315.04
7.3.90.0060.00614.83
7.3.80.0060.00614.93
7.3.70.0000.01115.07
7.3.60.0040.00715.07
7.3.50.0060.01215.08
7.3.40.0100.00714.71
7.3.30.0080.00415.13
7.3.20.0060.00616.89
7.3.10.0000.01316.61
7.3.00.0000.01016.66
7.2.330.0030.01616.90
7.2.320.0110.00917.10
7.2.310.0090.01216.94
7.2.300.0160.00017.00
7.2.290.0080.00916.84
7.2.240.0120.00315.11
7.2.230.0030.00715.38
7.2.220.0030.01215.10
7.2.210.0070.01014.91
7.2.200.0040.01115.19
7.2.190.0080.00814.93
7.2.180.0100.00715.14
7.2.170.0000.01615.20
7.2.160.0030.01015.16
7.2.150.0060.00916.97
7.2.140.0070.00417.07
7.2.130.0040.01117.15
7.2.120.0030.00917.03
7.2.110.0000.01417.21
7.2.100.0000.01517.03
7.2.90.0030.00917.11
7.2.80.0060.00317.09
7.2.70.0070.00717.16
7.2.60.0150.00417.23
7.2.50.0070.00716.93
7.2.40.0060.00916.90
7.2.30.0090.00617.00
7.2.20.0090.00317.07
7.2.10.0130.00317.14
7.2.00.0050.01018.19
7.1.330.0060.00915.99
7.1.320.0090.00315.95
7.1.310.0000.01015.99
7.1.300.0060.00615.85
7.1.290.0000.01015.88
7.1.280.0040.00716.11
7.1.270.0060.00615.89
7.1.260.0000.01315.82
7.1.250.0040.00816.13
7.1.100.0030.00918.30
7.1.70.0000.01017.05
7.1.60.0070.01719.46
7.1.50.0080.01517.01
7.1.00.0030.07722.61
7.0.200.0000.00816.77
7.0.140.0030.07322.25
7.0.100.0070.04020.07
7.0.90.0070.08020.06
7.0.80.0070.08020.20
7.0.70.0100.08020.19
7.0.60.0030.08720.05
7.0.50.0070.08320.39
7.0.40.0070.06720.16
7.0.30.0130.08020.20
7.0.20.0130.07720.19
7.0.10.0070.08320.11
7.0.00.0100.08020.23
5.6.280.0030.07321.18
5.6.250.0130.04720.89
5.6.240.0200.07020.88
5.6.230.0100.07320.65
5.6.220.0100.07720.85
5.6.210.0170.07320.73
5.6.200.0130.05021.13
5.6.190.0170.07021.02
5.6.180.0270.06321.27
5.6.170.0030.08721.07
5.6.160.0070.08721.16
5.6.150.0130.07021.10
5.6.140.0200.07321.16
5.6.130.0030.08321.24
5.6.120.0200.07021.15
5.6.110.0100.08321.05
5.6.100.0030.08721.23
5.6.90.0100.07721.23
5.6.80.0100.04020.58
5.6.70.0030.04020.67
5.6.60.0130.07720.66
5.6.50.0070.07720.49
5.6.40.0130.07320.45
5.6.30.0070.04720.55
5.6.20.0170.06020.52
5.6.10.0070.05720.54
5.6.00.0130.06720.49
5.5.380.0070.08720.74
5.5.370.0100.07720.47
5.5.360.0100.07720.46
5.5.350.0130.07320.45
5.5.340.0130.07720.89
5.5.330.0000.09020.98
5.5.320.0130.08021.03
5.5.310.0170.07021.04
5.5.300.0070.09020.95
5.5.290.0100.08720.84
5.5.280.0100.08320.95
5.5.270.0100.08320.85
5.5.260.0200.07320.97
5.5.250.0170.07720.70
5.5.240.0100.06320.33
5.5.230.0200.06320.17
5.5.220.0100.04720.36
5.5.210.0070.08020.19
5.5.200.0170.07020.24
5.5.190.0070.07720.23
5.5.180.0130.07320.27
5.5.160.0100.06720.20
5.5.150.0230.07020.40
5.5.140.0100.06320.18
5.5.130.0130.04320.31
5.5.120.0100.06020.13
5.5.110.0100.06720.35
5.5.100.0070.03720.23
5.5.90.0070.03320.27
5.5.80.0000.04020.27
5.5.70.0000.04320.12
5.5.60.0070.03320.18
5.5.50.0030.04320.21
5.5.40.0070.06720.21
5.5.30.0000.05720.11
5.5.20.0130.06720.13
5.5.10.0070.03720.08
5.5.00.0030.07020.23
5.4.450.0130.07319.54
5.4.440.0030.05319.53
5.4.430.0070.08019.48
5.4.420.0070.07719.48
5.4.410.0100.07319.32
5.4.400.0070.03319.18
5.4.390.0100.07019.03
5.4.380.0200.06319.18
5.4.370.0100.07319.02
5.4.360.0030.07719.21
5.4.350.0130.06719.21
5.4.340.0070.07719.39
5.4.320.0070.04719.14
5.4.310.0100.07319.04
5.4.300.0170.04319.22
5.4.290.0170.06019.33
5.4.280.0070.03719.20
5.4.270.0000.04719.11
5.4.260.0100.04719.11
5.4.250.0030.03719.22
5.4.240.0030.03719.18
5.4.230.0070.07719.11
5.4.220.0070.05719.16
5.4.210.0130.05719.17
5.4.200.0070.04719.20
5.4.190.0030.05319.10
5.4.180.0070.03319.17
5.4.170.0070.04319.32
5.4.160.0070.03319.14
5.4.150.0070.04319.21
5.4.140.0070.03016.56
5.4.130.0030.04016.52
5.4.120.0070.05316.48
5.4.110.0030.07716.53
5.4.100.0070.03716.30
5.4.90.0030.03316.59
5.4.80.0070.06016.45
5.4.70.0030.05016.45
5.4.60.0030.03716.47
5.4.50.0030.05316.45
5.4.40.0000.04016.42
5.4.30.0000.05316.51
5.4.20.0070.05016.50
5.4.10.0030.03716.61
5.4.00.0000.04015.94
5.3.290.0070.07314.72
5.3.280.0000.04014.64
5.3.270.0000.04014.67
5.3.260.0070.06014.71
5.3.250.0000.06014.53
5.3.240.0030.05014.67
5.3.230.0030.05714.76
5.3.220.0070.03314.69
5.3.210.0000.04714.68
5.3.200.0030.03314.49
5.3.190.0070.04714.63
5.3.180.0030.03314.69
5.3.170.0030.05314.62
5.3.160.0000.04014.71
5.3.150.0000.04014.73
5.3.140.0030.03714.70
5.3.130.0030.04014.63
5.3.120.0030.06014.67
5.3.110.0100.06314.61
5.3.100.0030.03714.17
5.3.90.0100.03014.07
5.3.80.0030.03714.06
5.3.70.0030.04313.88
5.3.60.0070.05714.07
5.3.50.0070.03314.08
5.3.40.0070.07014.08
5.3.30.0000.05713.96
5.3.20.0200.05713.75
5.3.10.0030.03313.49
5.3.00.0070.07313.70
5.2.170.0100.02011.21
5.2.160.0070.05311.34
5.2.150.0070.06011.29
5.2.140.0030.06311.04
5.2.130.0030.06011.21
5.2.120.0100.05711.02
5.2.110.0070.04711.29
5.2.100.0030.06011.17
5.2.90.0070.04011.32
5.2.80.0030.03711.17
5.2.70.0030.05711.20
5.2.60.0030.05311.16
5.2.50.0070.06011.02
5.2.40.0100.05011.15
5.2.30.0030.06711.05
5.2.20.0100.05711.10
5.2.10.0100.05710.99
5.2.00.0100.05710.82
5.1.60.0070.05010.20
5.1.50.0030.03010.11
5.1.40.0070.05310.12
5.1.30.0070.05310.52
5.1.20.0130.04710.53
5.1.10.0100.05010.21
5.1.00.0030.05710.17
5.0.50.0030.04710.11
5.0.40.0030.04310.11
5.0.30.0000.06310.11
5.0.20.0030.04310.11
5.0.10.0070.04010.11
5.0.00.0000.06710.11
4.4.90.0030.03710.11
4.4.80.0000.02310.11
4.4.70.0000.02010.11
4.4.60.0100.02710.11
4.4.50.0070.03010.11
4.4.40.0030.05010.11
4.4.30.0030.03710.11
4.4.20.0000.03710.11
4.4.10.0000.03710.11
4.4.00.0070.04310.11
4.3.110.0030.03710.11
4.3.100.0000.02010.11
4.3.90.0070.03010.11
4.3.80.0000.05310.11
4.3.70.0000.02010.11
4.3.60.0070.03010.11
4.3.50.0070.03310.11
4.3.40.0070.05010.11
4.3.30.0070.03310.11
4.3.20.0000.04010.11
4.3.10.0000.03710.11
4.3.00.0000.02310.11

preferences:
57.75 ms | 401 KiB | 5 Q