3v4l.org

run code in 300+ PHP versions simultaneously
<?php $content = <<<END &lt;?xml version="1.0" ?&gt; &lt;html xmlns="http://www.w3.org/1999/xhtml"&gt; &lt;head&gt; &lt;meta content="TX21_HTM 21.0.406.501" name="GENERATOR" /&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body style="font-family:'Arial';font-size:12pt;text-align:left;"&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;A&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;J:&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;B&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;C&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;D&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;E&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;F&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;G&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;H&lt;/span&gt;&lt;/p&gt; &lt;p lang="en-US" style="margin-top:0pt;margin-bottom:0pt;"&gt;&lt;span style="font-family:'Verdana';font-size:9pt;"&gt;I&lt;/span&gt;&lt;/p&gt; &lt;/body&gt; &lt;/html&gt; END; $dom =new DOMDocument('1.0','utf-8'); $element = $dom->createElement('test', $content); $dom->appendChild($element); //header('Content-type: text/xml;'); echo $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.5.10.0030.00619.00
8.5.00.0120.01020.09
8.4.160.0120.00824.05
8.4.150.0020.00014.05
8.4.140.0110.01017.90
8.4.130.0080.00217.98
8.4.120.0040.00522.46
8.4.110.0070.00618.95
8.4.100.0080.00720.78
8.4.90.0120.00818.84
8.4.80.0130.00618.93
8.4.70.0020.00718.04
8.4.60.0070.00518.86
8.4.50.0120.00818.58
8.4.40.0180.00317.90
8.4.30.0090.01220.65
8.4.20.0120.00918.28
8.4.10.0060.00319.86
8.3.280.0100.01018.44
8.3.270.0130.00716.55
8.3.260.0130.00616.73
8.3.250.0070.00618.85
8.3.240.0100.00916.75
8.3.230.0050.01216.82
8.3.220.0110.00919.21
8.3.210.0140.00416.81
8.3.200.0040.00416.73
8.3.190.0100.01017.11
8.3.180.0110.00816.96
8.3.170.0080.00022.88
8.3.160.0060.00317.21
8.3.150.0070.01317.34
8.3.140.0110.00716.46
8.3.130.0030.00618.42
8.3.120.0060.00319.14
8.3.110.0050.00316.65
8.3.100.0120.00324.06
8.3.90.0060.00326.77
8.3.80.0030.00616.88
8.3.70.0140.00416.75
8.3.60.0120.00416.48
8.3.50.0040.01120.21
8.3.40.0150.00020.35
8.3.30.0040.01118.84
8.3.20.0000.00724.18
8.3.10.0070.00724.66
8.3.00.0000.00926.16
8.2.290.0100.00820.75
8.2.280.0050.00418.69
8.2.270.0030.01417.60
8.2.260.0090.00916.44
8.2.250.0000.00818.82
8.2.240.0030.01217.60
8.2.230.0030.00620.94
8.2.220.0080.00037.54
8.2.210.0000.00726.77
8.2.200.0060.00317.00
8.2.190.0180.00418.54
8.2.180.0120.00625.92
8.2.170.0140.00018.91
8.2.160.0100.00722.96
8.2.150.0100.00325.66
8.2.140.0040.00424.66
8.2.130.0000.00826.16
8.2.120.0070.00318.05
8.2.110.0080.00020.47
8.2.100.0000.01020.44
8.1.330.0070.01121.86
8.1.320.0120.00716.11
8.1.310.0090.00017.10
8.1.300.0060.00320.67
8.1.290.0080.00318.88
8.1.280.0190.00325.92
8.1.270.0000.00724.10
8.1.260.0040.00426.35
8.1.250.0030.00528.09
8.1.240.0070.00319.07
8.1.230.0080.00318.93
7.2.300.0090.00516.32

preferences:
35.4 ms | 403 KiB | 5 Q