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;ABC1.&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;(ABC2)&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;ABC3&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.4.120.0130.00820.67
8.4.110.0130.00722.66
8.4.100.0130.00817.77
8.4.90.0130.00717.76
8.4.80.0120.00818.02
8.4.70.0130.00719.55
8.4.60.0110.00819.08
8.4.50.0110.01019.03
8.4.40.0130.00617.57
8.4.30.0130.00618.54
8.4.20.0060.01217.84
8.4.10.0090.00019.75
8.3.250.0150.00418.86
8.3.240.0120.00816.48
8.3.230.0080.01016.88
8.3.220.0100.00617.36
8.3.210.0120.00816.63
8.3.200.0070.00316.53
8.3.190.0110.00817.17
8.3.180.0070.01116.50
8.3.170.0090.00919.20
8.3.160.0090.00318.33
8.3.150.0130.00316.62
8.3.140.0040.00416.73
8.3.130.0080.00018.49
8.3.120.0040.01218.93
8.3.110.0050.00520.94
8.3.100.0130.00624.06
8.3.90.0080.00026.77
8.3.80.0090.00016.63
8.3.70.0040.01116.88
8.3.60.0080.00816.63
8.3.50.0100.00720.20
8.3.40.0070.00720.55
8.3.30.0110.00418.82
8.3.20.0080.00024.18
8.3.10.0000.00824.66
8.3.00.0030.00626.16
8.2.290.0050.00420.75
8.2.280.0120.00818.32
8.2.270.0090.00916.68
8.2.260.0180.00017.35
8.2.250.0040.00416.95
8.2.240.0080.00017.24
8.2.230.0000.00822.58
8.2.220.0040.00437.54
8.2.210.0110.00426.77
8.2.200.0070.00416.75
8.2.190.0070.00716.75
8.2.180.0140.00725.92
8.2.170.0120.00619.18
8.2.160.0070.00722.96
8.2.150.0050.00225.66
8.2.140.0070.00024.66
8.2.130.0040.00426.16
8.2.120.0000.00819.02
8.2.110.0030.00619.57
8.2.100.0170.00017.59
8.2.90.0080.00019.31
8.2.80.0040.00418.18
8.2.70.0050.00517.63
8.2.60.0070.00018.18
8.2.50.0030.00618.07
8.2.40.0030.00618.28
8.2.30.0050.00318.32
8.2.20.0000.00720.56
8.2.10.0000.00817.74
8.2.00.0040.00419.44
8.1.330.0100.00816.77
8.1.320.0110.00816.30
8.1.310.0140.00418.79
8.1.300.0080.00818.20
8.1.290.0050.00518.88
8.1.280.0090.00625.92
8.1.270.0050.00323.99
8.1.260.0040.00426.35
8.1.250.0040.00428.09
8.1.240.0000.01024.28
8.1.230.0070.00322.43
8.1.220.0040.00417.91
8.1.210.0040.00418.77
8.1.200.0030.00617.48
8.1.190.0040.00417.25
8.1.180.0060.00318.10
8.1.170.0050.00318.63
8.1.160.0000.00818.87
8.1.150.0040.00418.64
8.1.140.0070.00417.42
8.1.130.0030.00319.05
8.1.120.0030.00517.49
8.1.110.0030.00517.52
8.1.100.0000.00717.49
8.1.90.0050.00317.54
8.1.80.0070.00017.55
8.1.70.0040.00417.46
8.1.60.0030.00617.57
8.1.50.0030.00617.64
8.1.40.0020.00517.52
8.1.30.0060.00317.74
8.1.20.0000.00817.71
8.1.10.0000.00817.69
8.1.00.0070.00017.64
8.0.300.0050.00218.77
8.0.290.0060.00316.88
8.0.280.0040.00420.26
8.0.270.0020.00518.27
8.0.260.0030.00318.63
8.0.250.0030.00317.15
8.0.240.0030.00317.14
8.0.230.0070.00017.12
8.0.220.0030.00316.95
8.0.210.0030.00316.96
8.0.200.0050.00317.00
8.0.190.0040.00417.13
8.0.180.0100.00017.08
8.0.170.0040.00417.01
8.0.160.0000.00816.93
8.0.150.0000.00716.96
8.0.140.0000.00716.97
8.0.130.0050.00316.91
8.0.120.0000.00716.97
8.0.110.0050.00216.88
8.0.100.0000.00716.96
8.0.90.0000.00816.96
8.0.80.0040.00417.00
8.0.70.0040.00417.05
8.0.60.0070.00016.98
8.0.50.0070.00016.94
8.0.30.0030.00316.96
8.0.20.0000.00717.00
8.0.10.0040.00417.14
7.4.330.0000.00515.55
7.4.320.0000.00816.64
7.4.300.0070.00016.68
7.4.290.0100.00016.61
7.4.280.0000.00816.66
7.4.270.0030.00316.63
7.4.260.0070.00016.74
7.4.250.0000.00716.50
7.4.240.0070.00016.57
7.4.230.0000.00816.64
7.4.220.0030.00316.64
7.4.210.0070.00016.61
7.4.200.0070.00016.67
7.4.190.0040.00416.70
7.4.180.0030.00316.52
7.4.160.0000.00616.49
7.4.150.0030.00316.57
7.4.140.0000.00816.45
7.4.130.0030.00316.46
7.4.120.0060.00016.60
7.4.110.0050.00216.47
7.4.100.0000.00716.53
7.4.90.0070.00016.43
7.4.80.0030.00316.42
7.4.70.0030.00516.62
7.4.60.0030.00316.43
7.4.50.0000.00716.45
7.4.40.0030.00316.52
7.4.30.0030.00316.51
7.4.20.0000.00716.59
7.4.10.0080.00016.51
7.4.00.0000.00716.57

preferences:
26.6 ms | 403 KiB | 5 Q