3v4l.org

run code in 300+ PHP versions simultaneously
<?php $emailtempalte = '<table border="0" cellpadding="0" cellspacing="0" style="margin: 0 auto; width: 100%; margin: 0px auto;    max-width: 600px;" width="600">    <tbody>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><img alt="" src="http://cdn.socialannex.com/custom_images/9396340/COV7Y3_logo.png" style="max-width:440px; width: 100%;margin: 0px auto;" /></td>        </tr>        <tr>            <td style="border-top:1px solid #aeaeae;">&nbsp;</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:30px; color:#000; text-transform: uppercase;" valign="top">Your Review<br />            Has Been Approved!</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:14px; color:#000;" valign="top">Thank you for your review. Please click on &ldquo;View Review&rdquo;<br />            below to see your approved review.</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><img alt="" height="250px" src="#productImageUrl#" width="268px" /></td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:22px; color:#000; text-transform: uppercase;" valign="top">#productName#</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><a href="#producturl##sas28utmtag#"><img alt="" src="http://cdn.socialannex.com/custom_images/9396340/CXGJEG_view.png" /></a></td>        </tr>        <tr>            <td height="60">&nbsp;</td>        </tr>        <tr>            <td align="center" style="background:#eaeaea;font-family:Helvetica,Arial; font-size:11px; color:#000; height:80px;" valign="middle">Many Thanks<br />            The Wilsons Leather Team</td>        </tr>    </tbody></table><sas28utm>utm_campaign=write_review&utm_medium=email&utm_source=socialannex</sas28utm>'; echo substr($emailtempalte, strpos($emailtempalte, "<sas28utm>")+10, (strpos($emailtempalte, "</sas28utm>")+11)); echo "\n\n-----------------------\n\n"; $emailtempalte = '<sas28utm>utm_campaign=write_review&utm_medium=email&utm_source=socialannex</sas28utm><table border="0" cellpadding="0" cellspacing="0" style="margin: 0 auto; width: 100%; margin: 0px auto;    max-width: 600px;" width="600">    <tbody>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><img alt="" src="http://cdn.socialannex.com/custom_images/9396340/COV7Y3_logo.png" style="max-width:440px; width: 100%;margin: 0px auto;" /></td>        </tr>        <tr>            <td style="border-top:1px solid #aeaeae;">&nbsp;</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:30px; color:#000; text-transform: uppercase;" valign="top">Your Review<br />            Has Been Approved!</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:14px; color:#000;" valign="top">Thank you for your review. Please click on &ldquo;View Review&rdquo;<br />            below to see your approved review.</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><img alt="" height="250px" src="#productImageUrl#" width="268px" /></td>        </tr>        <tr>            <td>&nbsp;</td>        </tr> <sas28utm>utm_campaign=write_review&utm_medium=email&utm_source=socialannex</sas28utm>       <tr>            <td align="center" style="font-family:Helvetica,Arial; font-size:22px; color:#000; text-transform: uppercase;" valign="top">#productName#</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td>&nbsp;</td>        </tr>        <tr>            <td align="center" valign="top"><a href="#producturl##sas28utmtag#"><img alt="" src="http://cdn.socialannex.com/custom_images/9396340/CXGJEG_view.png" /></a></td>        </tr>        <tr>            <td height="60">&nbsp;</td>        </tr>        <tr>            <td align="center" style="background:#eaeaea;font-family:Helvetica,Arial; font-size:11px; color:#000; height:80px;" valign="middle">Many Thanks<br />            The Wilsons Leather Team</td>        </tr>    </tbody></table><sas28utm>utm_campaign=write_review&utm_medium=email&utm_source=socialannex</sas28utm>'; $matches = array(); preg_match("/<sas28utm>[\s\S\d\D\w\W\X]*<\/sas28utm>/", $emailtempalte, $matches, PREG_SET_ORDER); print_r($matches);

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.0120.00616.75
8.3.50.0140.00017.95
8.3.40.0110.00418.57
8.3.30.0090.00618.84
8.3.20.0100.00721.95
8.3.10.0090.00023.50
8.3.00.0100.00019.38
8.2.180.0100.00716.75
8.2.170.0090.00622.96
8.2.160.0140.00019.17
8.2.150.0000.00724.18
8.2.140.0080.00024.66
8.2.130.0000.00822.25
8.2.120.0040.00426.35
8.2.110.0040.00421.00
8.2.100.0000.01117.91
8.2.90.0080.00019.00
8.2.80.0040.00417.97
8.2.70.0060.00317.75
8.2.60.0030.00617.80
8.2.50.0040.00418.10
8.2.40.0000.00720.35
8.2.30.0000.01119.27
8.2.20.0050.00218.01
8.2.10.0080.00018.07
8.2.00.0000.00717.93
8.1.280.0110.00425.92
8.1.270.0090.00020.69
8.1.260.0070.00026.35
8.1.250.0050.00328.09
8.1.240.0040.00424.02
8.1.230.0110.00017.76
8.1.220.0050.00317.74
8.1.210.0040.00418.77
8.1.200.0000.00917.13
8.1.190.0050.00317.23
8.1.180.0040.00418.10
8.1.170.0050.00318.34
8.1.160.0030.00518.89
8.1.150.0000.00818.79
8.1.140.0050.00319.54
8.1.130.0030.00318.80
8.1.120.0000.00717.41
8.1.110.0000.00717.40
8.1.100.0000.00817.42
8.1.90.0050.00217.43
8.1.80.0040.00417.27
8.1.70.0070.00017.40
8.1.60.0000.00717.54
8.1.50.0040.00417.37
8.1.40.0050.00317.43
8.1.30.0080.00017.52
8.1.20.0050.00317.61
8.1.10.0040.00417.41
8.1.00.0000.00817.50
8.0.300.0080.00018.77
8.0.290.0080.00016.88
8.0.280.0000.00718.34
8.0.270.0000.00717.33
8.0.260.0000.00617.31
8.0.250.0050.00216.93
8.0.240.0040.00417.00
8.0.230.0000.00716.97
8.0.220.0100.00016.88
8.0.210.0030.00316.89
8.0.200.0030.00316.91
8.0.190.0090.00316.95
8.0.180.0070.00016.89
8.0.170.0070.00016.96
8.0.160.0000.00816.94
8.0.150.0040.00416.84
8.0.140.0000.00716.76
8.0.130.0050.00013.30
8.0.120.0000.00716.79
8.0.110.0000.00717.02
8.0.100.0040.00416.80
8.0.90.0000.00716.99
8.0.80.0120.00916.79
8.0.70.0000.00716.81
8.0.60.0000.00716.70
8.0.50.0060.00317.01
8.0.30.0100.00817.09
8.0.20.0100.01117.40
8.0.10.0000.00716.85
8.0.00.0100.00616.86
7.4.330.0050.00015.55
7.4.320.0000.00816.41
7.4.300.0000.00616.53
7.4.290.0000.00716.51
7.4.280.0000.00816.61
7.4.270.0030.00316.43
7.4.260.0070.00416.52
7.4.250.0020.00516.53
7.4.240.0080.00016.45
7.4.230.0030.00316.71
7.4.220.0090.00916.64
7.4.210.0080.01016.55
7.4.200.0000.00716.33
7.4.160.0050.01116.58
7.4.150.0150.00417.40
7.4.140.0130.00817.86
7.4.130.0130.00716.43
7.4.120.0080.01616.65
7.4.110.0140.00316.65
7.4.100.0090.00816.78
7.4.90.0120.00616.61
7.4.80.0050.01319.39
7.4.70.0080.00816.47
7.4.60.0070.01316.39
7.4.50.0070.01116.54
7.4.40.0140.00416.63
7.4.30.0040.01116.49
7.4.00.0060.01015.14
7.3.330.0000.00613.25
7.3.320.0020.00213.16
7.3.310.0040.00416.46
7.3.300.0000.00716.37
7.3.290.0050.00216.17
7.3.280.0080.00816.36
7.3.270.0060.01217.40
7.3.260.0110.00816.62
7.3.250.0100.00816.52
7.3.240.0100.01316.49
7.3.230.0150.00616.26
7.3.210.0160.00516.57
7.3.200.0070.01016.50
7.3.190.0120.00916.54
7.3.180.0090.01216.54
7.3.170.0070.01016.41
7.3.160.0000.01616.65
7.2.330.0100.00716.78
7.2.320.0030.01316.54
7.2.310.0090.00816.82
7.2.300.0110.00616.69
7.2.290.0080.00916.65
7.2.80.0000.01216.54
7.2.60.0110.00416.58
7.2.00.0150.00419.38
7.1.200.0070.01015.58
7.1.70.0030.00317.08
7.1.60.0110.00317.46
7.1.50.0800.01332.82
7.1.40.0900.02032.70
7.1.30.1130.02032.79
7.1.20.0630.02032.79
7.1.10.0530.01314.95
7.1.00.0530.01014.96
7.0.200.0070.01416.80
7.0.190.0700.01014.81
7.0.180.0800.01014.44
7.0.170.0700.01714.46
7.0.160.0870.01014.22
7.0.150.0670.01014.39
7.0.140.0370.01714.70
7.0.130.0530.01314.46
7.0.120.0600.01014.68
7.0.110.0400.01014.64
7.0.100.0470.01014.73
7.0.90.0670.01314.64
7.0.80.0270.01714.74
7.0.70.0300.00714.56
7.0.60.0430.01014.57
7.0.50.0630.01314.58
7.0.40.0430.01314.80
7.0.30.0430.01014.73
7.0.20.0530.00714.73
7.0.10.0570.01314.70
7.0.00.0530.01014.60

preferences:
61.11 ms | 400 KiB | 5 Q