3v4l.org

run code in 300+ PHP versions simultaneously
<?php $root = new DOMDocument(); $root->loadXML('<article id=""></article>'); for($i=0;$i<=3000;$i++){ $node = new DOMDocument(); $node->loadXML('<section id="'.$i.'"><h1>Überschrift1</h1><h2>Überschrift2</h2><p>Content</p></section>'); $node = $root->importNode($node->documentElement, true); $root->documentElement->appendChild($node); } print $root->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.0260.02620.88
8.3.50.0200.03720.84
8.3.40.0070.03723.13
8.3.30.0220.02223.14
8.3.20.0130.01324.71
8.3.10.0070.01726.19
8.3.00.0100.01325.01
8.2.180.0280.03922.79
8.2.170.0230.02323.41
8.2.160.0200.03026.83
8.2.150.0120.01224.18
8.2.140.0070.01726.83
8.2.130.0100.01326.70
8.2.120.0070.01726.86
8.2.110.0170.01325.05
8.2.100.0160.02222.25
8.2.90.0040.02823.64
8.2.80.0070.02622.46
8.2.70.0090.02221.88
8.2.60.0070.02422.43
8.2.50.0140.01822.63
8.2.40.0040.02926.69
8.2.30.0030.02925.61
8.2.20.0040.02822.66
8.2.10.0160.01622.70
8.2.00.0030.02722.73
8.1.280.0140.04225.92
8.1.270.0030.02326.57
8.1.260.0070.01828.42
8.1.250.0030.02128.09
8.1.240.0140.01427.34
8.1.230.0100.02923.77
8.1.220.0140.01722.29
8.1.210.0100.02322.11
8.1.200.0000.03922.10
8.1.190.0060.02621.97
8.1.180.0060.02522.15
8.1.170.0100.02323.26
8.1.160.0100.02123.62
8.1.150.0090.02223.48
8.1.140.0070.02724.18
8.1.130.0000.03123.51
8.1.120.0030.02922.10
8.1.110.0130.02022.06
8.1.100.0030.02822.10
8.1.90.0000.03221.95
8.1.80.0070.02721.98
8.1.70.0110.02121.97
8.1.60.0100.02322.10
8.1.50.0100.02322.20
8.1.40.0190.01622.13
8.1.30.0100.02222.32
8.1.20.0060.02622.26
8.1.10.0060.02522.07
8.1.00.0070.02522.15
8.0.300.0100.02222.39
8.0.290.0000.03421.21
8.0.280.0070.02422.85
8.0.270.0060.02521.71
8.0.260.0130.01721.34
8.0.250.0070.02321.46
8.0.240.0110.02221.18
8.0.230.0030.02721.23
8.0.220.0130.01721.25
8.0.210.0140.01721.42
8.0.200.0030.02721.31
8.0.190.0100.03421.48
8.0.180.0150.01521.29
8.0.170.0130.01921.44
8.0.160.0030.02821.38
8.0.150.0160.01621.41
8.0.140.0030.02921.21
8.0.130.0030.03117.79
8.0.120.0030.02821.36
8.0.110.0070.02421.40
8.0.100.0030.02721.35
8.0.90.0070.02521.20
8.0.80.0160.09921.30
8.0.70.0090.02221.41
8.0.60.0090.02221.34
8.0.50.0100.02021.17
8.0.30.0150.04721.49
8.0.20.0280.07021.44
8.0.10.0070.02421.48
8.0.00.0230.06621.36
7.4.330.0070.02319.57
7.4.320.0100.02021.05
7.4.300.0030.02920.89
7.4.290.0030.02920.94
7.4.280.0140.02020.96
7.4.270.0130.02021.00
7.4.260.0060.02717.91
7.4.250.0060.02721.07
7.4.240.0060.02521.13
7.4.230.0060.02620.82
7.4.220.0200.08020.97
7.4.210.0080.07220.98
7.4.200.0170.01421.11
7.4.160.0260.06120.94
7.4.150.0320.05820.89
7.4.140.0250.08620.86
7.4.130.0260.08620.86
7.4.120.0290.08220.91
7.4.110.0330.09820.94
7.4.100.0310.06720.90
7.4.90.0300.06320.91
7.4.80.0200.08621.06
7.4.70.0130.07121.05
7.4.60.0130.07320.96
7.4.50.0000.04621.02
7.4.40.0160.07521.01
7.4.30.0100.08020.88
7.4.00.0130.03919.46
7.3.330.0000.02917.62
7.3.320.0030.02817.46
7.3.310.0000.03120.67
7.3.300.0060.02520.84
7.3.290.0110.02220.75
7.3.280.0190.09120.77
7.3.270.0250.06720.73
7.3.260.0230.07020.92
7.3.250.0250.09520.81
7.3.240.0240.07520.94
7.3.230.0230.06820.75
7.3.210.0280.06520.87
7.3.200.0200.07420.87
7.3.190.0320.10620.81
7.3.180.0100.08420.97
7.3.170.0140.08520.93
7.3.160.0290.10620.73
7.2.330.0290.06821.23
7.2.320.0330.07020.81
7.2.310.0160.07021.07
7.2.300.0230.07321.24
7.2.290.0300.09920.98
7.2.60.0130.03021.37
7.2.00.0190.04823.78
7.1.200.0100.03920.11
7.1.100.0100.03722.68
7.1.70.0000.04821.36
7.1.60.0700.11337.88
7.1.50.0400.06737.60
7.1.40.0970.11737.48
7.1.30.0600.07337.43
7.1.20.0670.11737.56
7.1.10.0530.07019.23
7.1.00.0570.11019.36
7.0.200.0430.08019.65
7.0.190.0630.10019.41
7.0.180.0230.08718.98
7.0.170.0500.11019.20
7.0.160.0200.07019.00
7.0.150.0330.06718.97
7.0.140.0800.06319.07
7.0.130.0430.06319.51
7.0.120.0370.06019.38
7.0.110.0300.07319.39
7.0.100.0230.07719.36
7.0.90.0330.06719.16
7.0.80.0330.06719.21
7.0.70.0300.07019.10
7.0.60.0330.07018.77
7.0.50.0330.06719.07
7.0.40.0400.07319.25
7.0.30.0430.07019.13
7.0.20.0300.07719.12
7.0.10.0530.13318.93
7.0.00.0370.07319.11

preferences:
60.05 ms | 401 KiB | 5 Q