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_all("/<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.70.0110.01116.38
8.3.60.0070.01118.18
8.3.50.0050.01217.23
8.3.40.0090.00618.77
8.3.30.0120.00318.79
8.3.20.0040.00421.77
8.3.10.0030.00623.66
8.3.00.0030.00717.63
8.2.190.0070.00716.63
8.2.180.0140.00716.34
8.2.170.0110.00422.96
8.2.160.0070.00719.33
8.2.150.0070.00024.18
8.2.140.0090.00024.66
8.2.130.0040.00422.14
8.2.120.0000.00826.35
8.2.110.0070.00321.06
8.2.100.0050.00517.84
8.2.90.0000.00919.09
8.2.80.0000.00817.97
8.2.70.0080.00317.72
8.2.60.0000.00818.03
8.2.50.0050.00318.10
8.2.40.0040.00420.40
8.2.30.0090.00019.25
8.2.20.0040.00417.98
8.2.10.0040.00417.88
8.2.00.0000.00718.11
8.1.280.0070.00725.92
8.1.270.0080.00020.55
8.1.260.0000.00726.35
8.1.250.0050.00328.09
8.1.240.0060.00322.53
8.1.230.0110.00017.70
8.1.220.0040.00417.74
8.1.210.0030.00618.77
8.1.200.0070.00317.09
8.1.190.0060.00317.13
8.1.180.0080.00018.10
8.1.170.0050.00318.49
8.1.160.0030.00518.82
8.1.150.0070.00018.77
8.1.140.0050.00217.32
8.1.130.0000.00818.75
8.1.120.0000.00717.39
8.1.110.0000.00817.46
8.1.100.0000.00717.48
8.1.90.0070.00017.34
8.1.80.0050.00217.44
8.1.70.0000.00817.33
8.1.60.0040.00417.41
8.1.50.0030.00517.48
8.1.40.0080.00017.52
8.1.30.0050.00317.60
8.1.20.0030.00517.52
8.1.10.0000.00717.42
8.1.00.0000.00717.42
8.0.300.0000.00818.77
8.0.290.0030.00616.75
8.0.280.0000.00718.38
8.0.270.0030.00317.15
8.0.260.0030.00317.18
8.0.250.0030.00316.92
8.0.240.0000.00716.93
8.0.230.0070.00016.89
8.0.220.0100.00016.77
8.0.210.0030.00316.89
8.0.200.0030.00316.90
8.0.190.0110.00016.96
8.0.180.0000.00716.85
8.0.170.0000.00716.96
8.0.160.0000.00916.86
8.0.150.0070.00016.81
8.0.140.0030.00416.88
8.0.130.0000.00513.33
8.0.120.0000.00716.76
8.0.110.0040.00416.76
8.0.100.0070.00016.80
8.0.90.0000.00716.70
8.0.80.0090.01316.90
8.0.70.0000.00716.85
8.0.60.0000.00716.96
8.0.50.0000.00816.78
8.0.30.0090.01117.19
8.0.20.0070.01217.40
8.0.10.0040.00417.09
8.0.00.0070.01016.83
7.4.330.0050.00015.55
7.4.320.0030.00316.64
7.4.300.0060.00016.66
7.4.290.0030.00316.46
7.4.280.0050.00316.56
7.4.270.0070.00016.44
7.4.260.0100.00016.41
7.4.250.0050.00316.48
7.4.240.0030.00616.44
7.4.230.0000.00716.63
7.4.220.0090.00916.72
7.4.210.0100.00716.56
7.4.200.0030.00516.60
7.4.160.0140.00516.46
7.4.150.0090.00917.40
7.4.140.0110.01017.86
7.4.130.0100.01016.32
7.4.120.0110.01216.60
7.4.110.0100.00716.50
7.4.100.0100.00716.41
7.4.90.0100.00716.53
7.4.80.0100.00719.39
7.4.70.0090.00916.50
7.4.60.0120.00916.52
7.4.50.0050.01016.58
7.4.40.0070.00716.41
7.4.30.0080.00816.63
7.4.10.0150.00014.80
7.4.00.0050.01014.87
7.3.330.0060.00013.15
7.3.320.0000.00613.34
7.3.310.0050.00316.22
7.3.300.0030.00316.36
7.3.290.0040.00416.16
7.3.280.0090.00816.30
7.3.270.0060.01217.40
7.3.260.0060.01316.37
7.3.250.0120.00916.42
7.3.240.0090.00916.65
7.3.230.0100.00716.55
7.3.210.0140.00716.48
7.3.200.0110.00616.36
7.3.190.0080.01116.77
7.3.180.0120.00916.59
7.3.170.0030.01316.53
7.3.160.0120.00316.57
7.3.130.0090.00914.87
7.3.120.0070.01014.83
7.3.110.0070.01014.85
7.3.100.0000.01014.74
7.3.90.0080.00614.82
7.3.80.0110.00814.80
7.3.70.0120.00314.86
7.3.60.0030.01014.96
7.3.50.0120.00315.04
7.3.40.0060.00615.02
7.3.30.0080.00314.67
7.3.20.0070.01016.39
7.3.10.0070.00316.46
7.3.00.0030.01216.79
7.2.330.0100.01016.56
7.2.320.0150.00316.67
7.2.310.0070.01116.64
7.2.300.0030.01516.93
7.2.290.0030.01516.63
7.2.260.0060.01115.24
7.2.250.0070.01115.22
7.2.240.0060.01215.02
7.2.230.0070.01015.20
7.2.220.0000.00915.32
7.2.210.0060.01315.21
7.2.200.0120.00614.98
7.2.190.0030.01315.09
7.2.180.0060.00915.15
7.2.170.0060.01014.83
7.2.160.0060.00914.75
7.2.150.0070.00316.82
7.2.140.0030.01016.84
7.2.130.0070.00716.86
7.2.120.0090.00616.86
7.2.110.0040.00816.85
7.2.100.0080.00516.83
7.2.90.0050.00816.99
7.2.80.0050.00916.68
7.2.70.0020.01316.96
7.2.60.0030.01116.90
7.2.50.0060.00416.79
7.2.40.0060.00916.90
7.2.30.0070.00517.14
7.2.20.0080.00616.88
7.2.10.0070.00616.87
7.2.00.0070.00817.13
7.1.330.0000.01315.86
7.1.320.0000.01016.13
7.1.310.0040.01416.12
7.1.300.0060.00615.84
7.1.290.0060.01015.88
7.1.280.0000.01115.97
7.1.270.0060.00916.11
7.1.260.0000.00915.94
7.1.250.0030.00716.07
7.1.240.0030.01515.91
7.1.230.0050.00916.00
7.1.220.0090.00315.95
7.1.210.0020.00915.89
7.1.200.0090.00215.84
7.1.190.0050.00815.89
7.1.180.0080.00515.75
7.1.170.0070.00515.83
7.1.160.0030.00715.76
7.1.150.0040.00715.78
7.1.140.0040.00915.79
7.1.130.0070.00715.83
7.1.120.0090.00515.80
7.1.110.0020.01115.95
7.1.100.0000.00915.84
7.1.90.0030.00915.89
7.1.80.0030.00715.56
7.1.70.0060.00516.26
7.1.60.0050.00616.42
7.1.50.0370.00821.53
7.1.40.0320.00821.44
7.1.30.0420.01321.47
7.1.20.0290.01421.49
7.1.10.0250.00615.59
7.1.00.0220.01215.72
7.0.330.0070.00415.55
7.0.320.0040.01115.63
7.0.310.0050.01015.38
7.0.300.0070.00515.51
7.0.290.0030.01015.28
7.0.280.0060.00415.45
7.0.270.0010.00915.63
7.0.260.0060.00515.51
7.0.250.0000.01215.38
7.0.240.0050.00915.53
7.0.230.0030.00815.54
7.0.220.0090.00515.48
7.0.210.0030.00715.46
7.0.200.0070.00815.99
7.0.190.0350.00415.07
7.0.180.0250.00615.26
7.0.170.0380.00715.16
7.0.160.0450.00615.09
7.0.150.0210.00715.20
7.0.140.0240.00815.19
7.0.130.0260.00715.31
7.0.120.0230.00815.31
7.0.110.0220.00815.22
7.0.100.0300.01015.13
7.0.90.0300.00715.03
7.0.80.0210.00815.06
7.0.70.0210.00615.20
7.0.60.0240.01015.08
7.0.50.0300.01015.18
7.0.40.0260.00814.03
7.0.30.0240.01213.99
7.0.20.0180.00713.89
7.0.10.0190.00714.08
7.0.00.0170.01213.76
5.6.400.0070.00414.68
5.6.390.0060.00614.34
5.6.380.0040.00914.58
5.6.370.0030.01014.25
5.6.360.0030.01114.31
5.6.350.0030.01214.65
5.6.340.0000.00814.43
5.6.330.0040.00814.60
5.6.320.0070.00714.48
5.6.310.0040.01114.31
5.6.300.0030.00814.29
5.6.290.0050.00514.48
5.6.280.0100.00614.59
5.6.270.0060.00614.21
5.6.260.0040.01114.17
5.6.250.0030.00614.35
5.6.240.0140.00314.31
5.6.230.0060.01014.48
5.6.220.0000.00914.34
5.6.210.0090.00614.15
5.6.200.0060.01014.29
5.6.190.0050.00514.47
5.6.180.0080.00414.15
5.6.170.0040.00814.24
5.6.160.0090.00014.15
5.6.150.0060.00614.32
5.6.140.0070.01014.50
5.6.130.0000.01014.53
5.6.120.0120.00614.31
5.6.110.0100.00014.52
5.6.100.0120.00614.18
5.6.90.0060.01214.25
5.6.80.0000.01513.95
5.6.70.0070.00714.39
5.6.60.0060.00314.60
5.6.50.0090.00614.30
5.6.40.0130.00314.13
5.6.30.0140.00414.19
5.6.20.0090.00614.47
5.6.10.0140.00014.48
5.6.00.0090.00614.59

preferences:
52.32 ms | 401 KiB | 5 Q