3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<HTML <html xmlns:v=\"urn:schemas-microsoft-com:vml\" xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:w=\"urn:schemas-microsoft-com:office:word\" xmlns:m=\"http://schemas.microsoft.com/office/2004/12/omml\" xmlns=\"http://www.w3.org/TR/REC-html40\"> <head> <meta http-equiv=\"Content-Type\" content=\"text/html; charset=us-ascii\"> <meta name=\"Generator\" content=\"Microsoft Word 14 (filtered medium)\"> <!--[if !mso]><style>v\\:* {behavior:url(#default#VML);} o\\:* {behavior:url(#default#VML);} w\\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} </style><![endif]--><style><!-- /* Font Definitions */ @font-face {font-family:\"Cambria Math\"; panose-1:2 4 5 3 5 4 6 3 2 4;} @font-face {font-family:Calibri; panose-1:2 15 5 2 2 2 4 3 2 4;} @font-face {font-family:Tahoma; panose-1:2 11 6 4 3 5 4 4 2 4;} @font-face {font-family:Webdings; panose-1:5 3 1 2 1 5 9 6 7 3;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {margin:0cm; margin-bottom:.0001pt; font-size:12.0pt; font-family:\"Times New Roman\",\"serif\";} a:link, span.MsoHyperlink {mso-style-priority:99; color:blue; text-decoration:underline;} a:visited, span.MsoHyperlinkFollowed {mso-style-priority:99; color:purple; text-decoration:underline;} p.MsoAcetate, li.MsoAcetate, div.MsoAcetate {mso-style-priority:99; mso-style-link:\"Balloon Text Char\"; margin:0cm; margin-bottom:.0001pt; font-size:8.0pt; font-family:\"Tahoma\",\"sans-serif\";} span.EmailStyle18 {mso-style-type:personal-reply; font-family:\"Calibri\",\"sans-serif\"; color:#1F497D;} span.BalloonTextChar {mso-style-name:\"Balloon Text Char\"; mso-style-priority:99; mso-style-link:\"Balloon Text\"; font-family:\"Tahoma\",\"sans-serif\"; mso-fareast-language:EN-GB;} .MsoChpDefault {mso-style-type:export-only; font-family:\"Calibri\",\"sans-serif\"; mso-fareast-language:EN-US;} @page WordSection1 {size:612.0pt 792.0pt; margin:72.0pt 72.0pt 72.0pt 72.0pt;} div.WordSection1 {page:WordSection1;} --></style><!--[if gte mso 9]><xml> <o:shapedefaults v:ext=\"edit\" spidmax=\"1028\" /> </xml><![endif]--><!--[if gte mso 9]><xml> <o:shapelayout v:ext=\"edit\"> <o:idmap v:ext=\"edit\" data=\"1\" /> </o:shapelayout></xml><![endif]--> </head> <body lang=\"EN-GB\" link=\"blue\" vlink=\"purple\"> <div class=\"WordSection1\"> <p class=\"MsoNormal\"><span style=\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;>Lorem Ipsum</span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><o:p>&nbsp;</o:p></span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <o:p></o:p></span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><o:p>&nbsp;</o:p></span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span> <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <o:p></o:p></span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><o:p>&nbsp;</o:p></span></p> <p class=\"MsoNormal\"><span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span><span style="font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span> <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. </span></p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><o:p>&nbsp;</o:p></span></p> <p class=\"MsoNormal\"><span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span>. <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span> <span style="\&quot;font-size: 11.0pt; font-family: &quot;Calibri&quot;, &quot;sans-serif&quot;; color: #1F497D\&quot;">Lorem Ipsum</span> </p> <p class=\"MsoNormal\"><span style=\"font-size:11.0pt;font-family:&quot;Calibri&quot;,&quot;sans-serif&quot;;color:#1F497D\"><o:p>&nbsp;</o:p></span></p> HTML; $value = stripslashes($html); $value = trim(strip_tags($value)); $value = preg_replace('/\n\s+$/m', '', $value); echo $value;

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.0130.00618.64
8.3.50.0130.00521.14
8.3.40.0140.00018.86
8.3.30.0090.00619.14
8.3.20.0040.00420.29
8.3.10.0080.00021.96
8.3.00.0060.00322.44
8.2.180.0120.00416.63
8.2.170.0090.00922.96
8.2.160.0070.00719.16
8.2.150.0050.00324.18
8.2.140.0040.00424.66
8.2.130.0080.00026.16
8.2.120.0080.00019.79
8.2.110.0060.00319.19
8.2.100.0090.00317.91
8.2.90.0040.00419.19
8.2.80.0040.00417.97
8.2.70.0030.00517.88
8.2.60.0090.00018.03
8.2.50.0050.00318.10
8.2.40.0000.00820.42
8.2.30.0080.00018.20
8.2.20.0000.00817.90
8.2.10.0030.00617.98
8.2.00.0070.00317.81
8.1.280.0070.00725.92
8.1.270.0030.00620.53
8.1.260.0030.00526.35
8.1.250.0000.00728.09
8.1.240.0060.00322.73
8.1.230.0090.00317.68
8.1.220.0030.00617.77
8.1.210.0070.00318.77
8.1.200.0060.00317.48
8.1.190.0040.00417.35
8.1.180.0040.00418.10
8.1.170.0040.00418.90
8.1.160.0000.00822.21
8.1.150.0030.00718.72
8.1.140.0030.00617.48
8.1.130.0030.00317.82
8.1.120.0040.00417.55
8.1.110.0060.00317.60
8.1.100.0070.00017.58
8.1.90.0000.00717.59
8.1.80.0070.00017.59
8.1.70.0030.00317.56
8.1.60.0030.00617.62
8.1.50.0000.00817.57
8.1.40.0040.00417.70
8.1.30.0000.00717.70
8.1.20.0030.00517.80
8.1.10.0040.00417.70
8.1.00.0030.00617.50
8.0.300.0050.00318.77
8.0.290.0040.00416.86
8.0.280.0070.00018.50
8.0.270.0000.00817.18
8.0.260.0070.00316.96
8.0.250.0070.00017.22
8.0.240.0000.00817.18
8.0.230.0000.00717.13
8.0.220.0050.00317.05
8.0.210.0020.00517.11
8.0.200.0070.00017.11
8.0.190.0070.00317.18
8.0.180.0050.00217.15
8.0.170.0060.00317.11
8.0.160.0030.00617.04
8.0.150.0080.00016.99
8.0.140.0040.00417.01
8.0.130.0000.00613.56
8.0.120.0080.00016.94
8.0.110.0040.00417.02
8.0.100.0070.00016.84
8.0.90.0040.00417.00
8.0.80.0030.01317.02
8.0.70.0070.00016.94
8.0.60.0050.00217.07
8.0.50.0000.00716.94
8.0.30.0080.01417.31
8.0.20.0110.01017.40
8.0.10.0040.00417.02
8.0.00.0060.01117.04
7.4.330.0000.00515.00
7.4.320.0000.00716.70
7.4.300.0040.00416.68
7.4.290.0000.00716.61
7.4.280.0000.01216.66
7.4.270.0040.00416.59
7.4.260.0080.00316.66
7.4.250.0070.00016.67
7.4.240.0060.00216.72
7.4.230.0000.00716.52
7.4.220.0120.00316.71
7.4.210.0100.00816.77
7.4.200.0030.00316.58
7.4.190.0000.00816.55
7.4.160.0140.01016.62
7.4.150.0180.00017.40
7.4.140.0100.01017.86
7.4.130.0100.00716.67
7.4.120.0090.01116.61
7.4.110.0060.01216.75
7.4.100.0140.01016.63
7.4.90.0140.00316.55
7.4.80.0090.00919.39
7.4.70.0060.01216.72
7.4.60.0070.01116.59
7.4.50.0030.00616.60
7.4.40.0060.00622.77
7.4.30.0060.00916.52
7.4.00.0030.01314.98
7.3.330.0050.00013.20
7.3.320.0030.00313.32
7.3.310.0000.00716.39
7.3.300.0030.00316.42
7.3.290.0080.00616.40
7.3.280.0030.01216.49
7.3.270.0120.00617.40
7.3.260.0090.00916.60
7.3.250.0060.01416.44
7.3.240.0000.01916.48
7.3.230.0080.01016.43
7.3.210.0060.01216.82
7.3.200.0040.01219.39
7.3.190.0140.00716.77
7.3.180.0060.01216.46
7.3.170.0080.00816.63
7.3.160.0110.00516.46
7.3.120.0070.01115.15
7.2.330.0100.00716.73
7.2.320.0090.01516.62
7.2.310.0110.00716.69
7.2.300.0100.00716.63
7.2.290.0100.00716.75
7.2.60.0100.01016.91
7.2.00.0080.01219.51
7.1.200.0200.00715.73
7.1.100.0130.00917.97
7.1.70.0000.00817.19
7.1.60.0150.00919.82
7.1.50.0070.00717.23
7.1.00.0030.05322.52
7.0.200.0040.00416.38
7.0.140.0100.06722.21
7.0.60.0170.07019.96
7.0.50.0000.04317.75
7.0.40.0030.04720.22
7.0.30.0330.07320.19
7.0.20.0230.03720.02
7.0.10.0030.09720.23
7.0.00.0070.08720.31
5.6.280.0070.07020.81
5.6.210.0100.03320.52
5.6.200.0070.08318.17
5.6.190.0170.07320.54
5.6.180.0230.08020.41
5.6.170.0200.04320.47
5.6.160.0030.05020.54
5.6.150.0030.08318.13
5.6.140.0030.07318.12
5.6.130.0100.04718.12
5.6.120.0070.08021.14
5.6.110.0030.04321.02
5.6.100.0030.08320.99
5.6.90.0130.08020.97
5.6.80.0130.04020.39
5.6.70.4570.04020.35
5.5.350.0300.06320.44
5.5.340.0030.08717.98
5.5.330.0000.05020.06
5.5.320.0200.04320.29
5.5.310.0430.06320.24
5.5.300.0100.08317.91
5.5.290.0070.07317.98
5.5.280.0070.05320.97
5.5.270.0070.06320.65
5.5.260.0100.05320.90
5.5.250.0030.07320.62
5.5.240.0270.07020.13
5.4.450.1000.05019.45
5.4.440.0930.04719.45
5.4.430.0200.05019.63
5.4.420.0930.05719.41
5.4.410.0230.05719.33
5.4.400.0770.05719.09
5.4.390.0700.05319.19
5.4.380.0200.05318.52
5.4.370.0270.04718.48
5.4.360.0370.03318.73
5.4.350.0130.05112.00
5.4.340.0070.03312.00
5.4.320.0070.04212.48
5.4.310.0040.03912.48
5.4.300.0080.03612.48
5.4.290.0050.04312.48
5.4.280.0080.05012.38
5.4.270.0030.04012.38
5.4.260.0040.04112.38
5.4.250.0070.06318.85
5.4.240.0130.05718.99
5.4.230.0030.05718.91
5.4.220.0030.06018.81
5.4.210.0000.06318.86
5.4.200.0030.05318.86
5.4.190.0100.05018.70
5.4.180.0100.05018.89
5.4.170.0130.06318.83
5.4.160.0130.07718.97
5.4.150.0100.05318.80
5.4.140.0100.05016.27
5.4.130.0070.04716.44
5.4.120.0100.04316.40
5.4.110.0100.04716.20
5.4.100.0170.04016.50
5.4.90.0000.05716.46
5.4.80.0070.05016.32
5.4.70.0030.05016.32
5.4.60.0030.05316.18
5.4.50.0100.04316.48
5.4.40.0100.04316.42
5.4.30.0170.04016.39
5.4.20.0000.05316.40
5.4.10.0070.05016.43
5.4.00.0100.04715.86
5.3.290.0080.03712.80
5.3.280.0000.05714.72
5.3.270.0100.05314.65
5.3.260.0000.06014.73
5.3.250.0030.05314.65
5.3.240.0130.04314.70
5.3.230.0030.05314.40
5.3.220.0100.04714.60
5.3.210.0130.04314.48
5.3.200.0030.05314.69
5.3.190.0030.05314.62
5.3.180.0000.05714.61
5.3.170.0100.04714.62
5.3.160.0030.05314.46
5.3.150.0130.04714.52
5.3.140.0230.03314.59
5.3.130.0100.05014.75
5.3.120.0030.05314.47
5.3.110.0000.05714.59
5.3.100.0130.04314.07
5.3.90.0030.05014.06
5.3.80.0030.05014.06
5.3.70.0030.05313.90
5.3.60.0070.04713.96
5.3.50.0030.05013.83
5.3.40.0170.04014.00
5.3.30.0130.04014.03
5.3.20.0100.06713.74
5.3.10.0030.06713.69
5.3.00.0170.03713.67
5.2.170.0100.04311.02
5.2.160.0070.03711.02
5.2.150.0070.04011.22
5.2.140.0000.06011.29
5.2.130.0070.04011.18
5.2.120.0000.04011.14
5.2.110.0100.04011.29
5.2.100.0070.03711.25
5.2.90.0100.03311.02
5.2.80.0070.05311.14
5.2.70.0030.04011.05
5.2.60.0030.04011.11
5.2.50.0000.04311.07
5.2.40.0030.04010.96
5.2.30.0100.03711.04
5.2.20.0070.04711.13
5.2.10.0100.03311.30
5.2.00.0030.04310.85
5.1.60.0070.03010.23
5.1.50.0030.03310.40
5.1.40.0030.03310.31
5.1.30.0000.04010.47
5.1.20.0070.05010.61
5.1.10.0100.03010.38
5.1.00.0100.03010.42
5.0.50.0030.0308.58
5.0.40.0070.0238.61
5.0.30.0000.0438.56
5.0.20.0000.0308.53
5.0.10.0030.0278.40
5.0.00.0030.0408.50
4.4.90.0030.0207.02
4.4.80.0000.0237.02
4.4.70.0000.0337.02
4.4.60.0000.0277.02
4.4.50.0000.0237.02
4.4.40.0030.0337.02
4.4.30.0000.0237.02
4.4.20.0030.0207.02
4.4.10.0000.0237.02
4.4.00.0000.0377.02
4.3.110.0070.0176.98
4.3.100.0000.0236.98
4.3.90.0070.0176.98
4.3.80.0100.0236.98
4.3.70.0030.0206.98
4.3.60.0000.0236.98
4.3.50.0030.0206.98
4.3.40.0000.0376.98
4.3.30.0000.0336.98
4.3.20.0000.0236.98
4.3.10.0000.0236.98
4.3.00.0100.0277.85

preferences:
35.94 ms | 401 KiB | 5 Q