3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = "</ul>\n<p>\n Evaluation<!--[if gte mso 9]><xml>\n<o:OfficeDocumentSettings>\n<o:AllowPNG />\n<o:TargetScreenSize>1024x768</o:TargetScreenSize>\n</o:OfficeDocumentSettings>\n</xml><![endif]--><!--[if gte mso 9]><xml>\n<w:WordDocument>\n<w:View>Normal</w:View>\n<w:Zoom>0</w:Zoom>\n<w:HyphenationZone>21</w:HyphenationZone>\n<w:PunctuationKerning />\n<w:ValidateAgainstSchemas />\n<w:SaveIfXMLInvalid>false</w:SaveIfXMLInvalid>\n<w:IgnoreMixedContent>false</w:IgnoreMixedContent>\n<w:AlwaysShowPlaceholderText>false</w:AlwaysShowPlaceholderText>\n<w:Compatibility>\n<w:BreakWrappedTables />\n<w:SnapToGridInCell />\n<w:WrapTextWithPunct />\n<w:UseAsianBreakRules />\n<w:DontGrowAutofit />\n</w:Compatibility>\n</w:WordDocument>\n</xml><![endif]--><!--[if gte mso 9]><xml>\n<w:LatentStyles DefLockedState=\"false\" LatentStyleCount=\"156\">\n</w:LatentStyles>\n</xml><![endif]--><!--[if gte mso 10]>\n<style>\n/* Style Definitions */\ntable.MsoNormalTable\n{mso-style-name:\"Normale Tabelle\";\nmso-tstyle-rowband-size:0;\nmso-tstyle-colband-size:0;\nmso-style-noshow:yes;\nmso-style-parent:\"\";\nmso-padding-alt:0cm 5.4pt 0cm 5.4pt;\nmso-para-margin:0cm;\nmso-para-margin-bottom:.0001pt;\nmso-pagination:widow-orphan;\nfont-size:10.0pt;\nfont-family:\"Times New Roman\";\nmso-ansi-language:#0400;\nmso-fareast-language:#0400;\nmso-bidi-language:#0400;}\n</style>\n<![endif]--></p>\n<ul>\n <li>"; $dom = new DOMDocument; $dom->loadHtml($str); $xpath = new DOMXPath($dom); foreach ($xpath->query('//comment()') as $comment) { $comment->parentNode->removeChild($comment); } echo $dom->saveXML($str);

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.0140.00717.00
8.3.50.0160.00616.64
8.3.40.0110.00419.04
8.3.30.0150.00019.22
8.3.20.0080.00020.66
8.3.10.0000.00823.88
8.3.00.0040.00424.16
8.2.180.0160.00618.79
8.2.170.0170.00322.96
8.2.160.0090.00920.81
8.2.150.0080.00024.18
8.2.140.0040.00424.66
8.2.130.0060.00320.27
8.2.120.0090.00026.35
8.2.110.0090.00021.38
8.2.100.0000.01118.40
8.2.90.0030.00519.59
8.2.80.0000.01018.43
8.2.70.0030.00617.88
8.2.60.0040.00418.43
8.2.50.0000.00818.25
8.2.40.0030.00622.88
8.2.30.0040.00719.91
8.2.20.0040.00418.33
8.2.10.0080.00018.56
8.2.00.0060.00318.56
8.1.280.0090.00625.92
8.1.270.0050.00522.44
8.1.260.0040.00728.09
8.1.250.0000.00828.09
8.1.240.0000.00924.21
8.1.230.0040.00719.56
8.1.220.0000.00818.16
8.1.210.0040.00418.77
8.1.200.0090.00017.73
8.1.190.0060.00317.85
8.1.180.0040.00418.14
8.1.170.0040.00418.96
8.1.160.0000.00721.14
8.1.150.0050.00319.18
8.1.140.0000.00820.11
8.1.130.0000.00718.00
8.1.120.0070.00017.82
8.1.110.0040.00417.79
8.1.100.0030.00517.72
8.1.90.0040.00417.79
8.1.80.0070.00017.67
8.1.70.0050.00217.82
8.1.60.0040.00417.91
8.1.50.0080.00017.86
8.1.40.0030.00517.77
8.1.30.0040.00418.07
8.1.20.0020.00517.86
8.1.10.0040.00417.86
8.1.00.0000.00717.81
8.0.300.0040.00418.77
8.0.290.0000.00816.88
8.0.280.0000.00718.66
8.0.270.0040.00417.51
8.0.260.0000.00817.61
8.0.250.0000.00717.38
8.0.240.0040.00717.27
8.0.230.0070.00017.24
8.0.220.0040.00417.18
8.0.210.0000.00717.41
8.0.200.0000.00817.46
8.0.190.0000.00717.43
8.0.180.0050.00217.23
8.0.170.0030.00517.32
8.0.160.0060.00317.33
8.0.150.0050.00317.34
8.0.140.0030.00617.14
8.0.130.0000.00613.86
8.0.120.0030.00617.31
8.0.110.0030.00517.22
8.0.100.0000.00717.16
8.0.90.0040.00417.44
8.0.80.0000.01717.39
8.0.70.0030.00517.29
8.0.60.0040.00417.15
8.0.50.0000.00817.29
8.0.30.0140.00717.57
8.0.20.0080.01017.45
8.0.10.0000.00717.30
8.0.00.0090.01117.40
7.4.330.0060.00015.43
7.4.320.0000.00816.90
7.4.300.0030.00516.90
7.4.290.0070.00016.87
7.4.280.0030.00616.94
7.4.270.0030.00316.88
7.4.260.0050.00516.78
7.4.250.0060.00316.90
7.4.240.0070.00016.97
7.4.230.0070.00016.64
7.4.220.0030.01416.81
7.4.210.0080.01016.90
7.4.200.0070.00016.76
7.4.160.0090.01216.86
7.4.150.0150.00317.40
7.4.140.0130.00617.86
7.4.130.0090.00916.81
7.4.120.0070.01016.89
7.4.110.0060.01016.95
7.4.100.0160.00816.96
7.4.90.0070.01117.01
7.4.80.0120.00619.39
7.4.70.0120.00616.86
7.4.60.0030.01317.05
7.4.50.0000.01216.68
7.4.40.0100.00716.82
7.4.30.0030.01616.88
7.4.00.0000.01414.99
7.3.330.0050.00013.39
7.3.320.0000.00513.55
7.3.310.0080.00016.60
7.3.300.0000.00716.52
7.3.290.0050.00316.47
7.3.280.0090.00816.55
7.3.270.0060.01217.40
7.3.260.0100.00716.74
7.3.250.0060.01216.72
7.3.240.0090.01016.60
7.3.230.0070.01016.57
7.3.210.0100.00716.86
7.3.200.0090.01319.39
7.3.190.0080.00816.80
7.3.180.0060.01516.64
7.3.170.0000.01616.82
7.3.160.0130.00616.71
7.2.330.0190.00316.82
7.2.320.0090.00916.79
7.2.310.0040.01316.98
7.2.300.0130.00616.77
7.2.290.0090.01217.06
7.2.60.0100.00016.72
7.2.00.0030.00619.71
7.1.200.0200.01115.64
7.1.100.0110.00017.77
7.1.70.0000.01117.07
7.1.60.0070.02019.30
7.1.50.0000.01116.91
7.1.00.0030.07722.61
7.0.200.0120.00416.97
7.0.60.0200.03021.89
7.0.50.0100.06317.98
7.0.40.0070.09020.55
7.0.30.0300.04720.45
7.0.20.0400.07320.40
7.0.10.0070.05720.29
7.0.00.0070.07720.41
5.6.280.0000.07721.03
5.6.210.0000.07320.95
5.6.200.0130.07018.27
5.6.190.0100.03720.60
5.6.180.0500.07320.66
5.6.170.0270.05320.66
5.6.160.0070.08320.59
5.6.150.0100.04718.36
5.6.140.0070.05018.41
5.6.130.0130.08018.36
5.6.120.0100.06721.25
5.6.110.0030.04321.24
5.6.100.0130.06321.09
5.6.90.0070.08721.16
5.6.80.0000.07720.50
5.5.350.0170.05020.63
5.5.340.0100.07318.13
5.5.330.0030.04320.58
5.5.320.0830.06320.42
5.5.310.0170.08020.41
5.5.300.0030.07018.09
5.5.290.0130.07318.29
5.5.280.0100.08021.07
5.5.270.0000.07720.93
5.5.260.0070.08720.88
5.5.250.0170.07020.80
5.5.240.0170.06320.40

preferences:
58.58 ms | 401 KiB | 5 Q