3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $html = <<<EOT <html><head> <title>MutualPoints RewardMail</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" marginwidth="0" marginheight="0"> <div align="center"> <img src="http://mm2.mutualpoints.com/o/clearpixel_61629_1895581.gif" border="0" width="1" height="1" alt=""> <!-- header starts here --> <table width="650" border="0" cellpadding="0" cellspacing="0" align="center"> <tbody><tr> <td colspan="4"><img src="http://freequotes.co.uk/MP_Template/650.gif" width="650" height="1" border="0"></td> </tr> <tr> <td colspan="4" width="650" height="34" style="text-align: center; font-size: 10px; font-family: Arial; COLOR: #9b9b9b;"><!-- top copy-->Please add support@mutualpoints.com to your address book to ensure your MutualPoints emails arrive safely.<br>To find out how to do this, <a href="http://www.mutualpoints.com/hosted/add_addressMP.htm" target="_blank">please use this link</a></td> </tr> <tr> <td width="5" height="50"></td> <td><a href="http://www.mutualpoints.com/"><img src="http://freequotes.co.uk/MP_Template/logo.jpg" width="199" height="50" border="0" alt="MutualPoints"></a></td> <td width="441" height="50" style="text-align: left; font-size: 12px; font-family: Arial; COLOR: #OOOOOO; font-weight: bold;" align="left"><!-- user reward information goes here --> <br>Hi Daniel <br>Your current balance: <font color="#249dd8">123,456 Points</font> </td> <td width="5" height="50"></td> </tr> <tr> <td colspan="4" height="1" bgcolor="#019edd"></td> </tr> <tr> <td width="5" height="34"></td> <td width="640" colspan="2" height="34" style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: arial; text-decoration: none;" align="center"> <!-- top reward line goes here --> <b>IMPORTANT ANNOUNCEMENT 7TH AUGUST 2014</b> </td> <td width="5" height="34"></td> </tr> <tr> <td colspan="4" height="1" bgcolor="#019edd"></td> </tr> <tr> <td width="650" colspan="4" height="10" bgcolor="#FFFFFF"></td> </tr> </tbody></table> <!-- header ends here --> <!-- creative starts here --> <table cellspacing="0" cellpadding="5" width="650" align="left"> <tbody><tr><td colspan="3" height="10"> </td></tr> <tr> <td width="10"> </td> <td> <span style="font-family:Arial,sans-serief;font-size:16px;color:#2e4045;">Hello Daniel,</span> <br><br> <span style="font-family:Arial,sans-serief;font-size:1.4px;color:#dba854;font-weight:bold;">IMPORTANT ANNOUNCEMENT 6TH AUGUST 2014</span> <br><br> <span style="font-family:Arial,sans-serief;font-size:16px;color:#2e4045;">Unfortunately, we are experiencing some technical issues with our website and is currently partially down for reconstruction, however the rest of the site seems to operate ok. Our technical team assure us that this issue will be fixed very soon. Please feel free to browse the rest of our site and call us on 0207 936 6400 or email <a href="http://mm2.mutualpoints.com/c/view_61629_2144642_1895581_n_145ca156.html" style="color:#2da1da;">support@mutualpoints.com</a> should you require any assistance. Our apologies for the inconvenience.</span> <br><br> <span style="font-family:Arial,sans-serief;color:#858d91;"> Kind regards<br> Mutual Points Customer Service<br> Support:<a href="http://mm2.mutualpoints.com/c/view_61629_2144642_1895581_n_145ca156.html" style="color:#2da1da;">support@mutualpoints.com</a><br> T:0207 936 6400<br> </span> </td> <td width="10"> </td> </tr> </tbody></table> </div> <!-- creative ends here --> <!-- show me more starts here --> <table id="smm" width="650" border="0" cellpadding="0" cellspacing="0" align="center"> <tbody><tr> <td width="650" colspan="3" height="10" bgcolor="#FFFFFF"></td> </tr> <tr> <td width="76" height="143"></td> <td width="498" height="143" bgcolor="#ededed" align="center"> <br> <a href="" style="FONT-SIZE: 14pt; COLOR: #003663; FONT-FAMILY: arial; text-decoration: none;">IMPORTANT ANNOUNCEMENT 7TH AUGUST 2014</a> <br><br> <a href="" style="FONT-SIZE: 10pt; COLOR: #249dd8; FONT-FAMILY: arial; text-decoration: none;">This offer is valid until the 21st of August 2014.</a> <br><br> <a href=""><img src="http://freequotes.co.uk/MP_Template/show_me_more.jpg" width="255" height="46" border="0" alt="Show Me More. IMPORTANT ANNOUNCEMENT 7TH AUGUST 2014"></a> <br><br> </td> <td width="76" height="143"></td> </tr> </tbody></table> <!-- show me more ends here --> <!-- footer starts here --> <table d="footer" width="650" border="0" cellpadding="0" cellspacing="0" align="center"> <tbody><tr> <td width="26" height="23"></td> <td width="598" height="23"></td> <td width="26" height="23"></td> </tr> <tr> <td width="26" height="80" bgcolor="#ededed"></td> <td width="598" height="80" bgcolor="#ededed" style="FONT-SIZE: 8pt; COLOR: #003663; FONT-FAMILY: arial; text-decoration: none;" align="left">This email has been sent to daniel@septum.org<br><br>Should you have any questions regarding your membership, please <a href="https://www.mutualpoints.com/support/" style="FONT-SIZE: 8pt; COLOR: #003663; FONT-FAMILY: arial;">contact Customer Services</a>. Please include your login name in any correspondence.</td> <td width="26" height="80" bgcolor="#ededed"></td> </tr> <tr> <td width="26" height="36" bgcolor="#003663"></td> <td width="598" height="36" bgcolor="#003663" style="FONT-SIZE: 10pt; COLOR: #FFFFFF; FONT-FAMILY: arial; text-decoration: none;" align="left"><span style="FONT-SIZE: 16pt;">Ready to Redeem?</span> If you've reached 3000 points....<a href="http://www.mutualpoints.com/myAccount/" style="FONT-SIZE: 10pt; COLOR: #FFFFFF; FONT-FAMILY: arial; text-decoration: none;">claim your cash</a></td> <td width="26" height="36" bgcolor="#003663"></td> </tr> <tr> <td width="26" height="80" bgcolor="#ededed"></td> <td width="598" height="80" bgcolor="#ededed" style="FONT-SIZE: 8pt; COLOR: #003663; FONT-FAMILY: arial; text-decoration: none;" align="left">MutualPoints only sends RewardMail to users who have registered with us. You signed up to MutualPoints on 07-08-2014 and have earned 123,456 Points to date. <br><br>Should you wish to unsubscribe to RewardMail, please <a href="http://mm2.mutualpoints.com/unsubscribe/?z=1895581_61629_f69f3a2f" style="FONT-SIZE: 8pt; COLOR: #003663; FONT-FAMILY: arial;">visit this link</a> and untick the relevant boxes in the 'Unsubscribe' section.</td> <td width="26" height="80" bgcolor="#ededed"></td> </tr> <tr> <td height="10" colspan="3"></td> </tr> <tr> <td width="26" height="23"></td> <td width="598" height="23" style="text-align: center; font-size: 10px; font-family: Arial; COLOR: #9b9b9b;">© 1997 - 2014 <a href="http://www.mutualpoints.com" style="font-family:Arial, Helvetica, sans-serif; font-size:10px; ">MutualPoints.com</a>. All rights reserved. MutualPoints, John Carpenter House, John Carpenter Street, London, EC4Y 0AN, Registered in England, Number 3925319<br>MutualPoints is part of Progressive Digital Media Group Plc , listed on the London Stock Exchange.</td> <td width="26" height="23"></td> </tr> </tbody></table> <!-- VisualDNA Tracking --> <img src="http://e.visualdna.com/conversion?api_key=edr&amp;id=email-view&amp;partner_user_id=863f614bfd479ea2ef27ec96449b7886&amp;partner_user_id_type=e&amp;broadcast=61629" width="1" height="1" style="width: 1px; height: 1px;" alt="" role="presentation"> <!-- VisualDNA Tracking --> <!-- footer ends here --> </body></html> EOT; echo preg_replace('/\<table id="smm"(\n|.)*<\/table>/', 'REP', $html);
based on a2joF
Output for 7.0.0 - 7.1.0
Output for 4.3.0 - 5.6.28, hhvm-3.10.0 - 3.12.0
<html><head> <title>MutualPoints RewardMail</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" marginwidth="0" marginheight="0"> <div align="center"> <img src="http://mm2.mutualpoints.com/o/clearpixel_61629_1895581.gif" border="0" width="1" height="1" alt=""> <!-- header starts here --> <table width="650" border="0" cellpadding="0" cellspacing="0" align="center"> <tbody><tr> <td colspan="4"><img src="http://freequotes.co.uk/MP_Template/650.gif" width="650" height="1" border="0"></td> </tr> <tr> <td colspan="4" width="650" height="34" style="text-align: center; font-size: 10px; font-family: Arial; COLOR: #9b9b9b;"><!-- top copy-->Please add support@mutualpoints.com to your address book to ensure your MutualPoints emails arrive safely.<br>To find out how to do this, <a href="http://www.mutualpoints.com/hosted/add_addressMP.htm" target="_blank">please use this link</a></td> </tr> <tr> <td width="5" height="50"></td> <td><a href="http://www.mutualpoints.com/"><img src="http://freequotes.co.uk/MP_Template/logo.jpg" width="199" height="50" border="0" alt="MutualPoints"></a></td> <td width="441" height="50" style="text-align: left; font-size: 12px; font-family: Arial; COLOR: #OOOOOO; font-weight: bold;" align="left"><!-- user reward information goes here --> <br>Hi Daniel <br>Your current balance: <font color="#249dd8">123,456 Points</font> </td> <td width="5" height="50"></td> </tr> <tr> <td colspan="4" height="1" bgcolor="#019edd"></td> </tr> <tr> <td width="5" height="34"></td> <td width="640" colspan="2" height="34" style="FONT-SIZE: 10pt; COLOR: #000000; FONT-FAMILY: arial; text-decoration: none;" align="center"> <!-- top reward line goes here --> <b>IMPORTANT ANNOUNCEMENT 7TH AUGUST 2014</b> </td> <td width="5" height="34"></td> </tr> <tr> <td colspan="4" height="1" bgcolor="#019edd"></td> </tr> <tr> <td width="650" colspan="4" height="10" bgcolor="#FFFFFF"></td> </tr> </tbody></table> <!-- header ends here --> <!-- creative starts here --> <table cellspacing="0" cellpadding="5" width="650" align="left"> <tbody><tr><td colspan="3" height="10"> </td></tr> <tr> <td width="10"> </td> <td> <span style="font-family:Arial,sans-serief;font-size:16px;color:#2e4045;">Hello Daniel,</span> <br><br> <span style="font-family:Arial,sans-serief;font-size:1.4px;color:#dba854;font-weight:bold;">IMPORTANT ANNOUNCEMENT 6TH AUGUST 2014</span> <br><br> <span style="font-family:Arial,sans-serief;font-size:16px;color:#2e4045;">Unfortunately, we are experiencing some technical issues with our website and is currently partially down for reconstruction, however the rest of the site seems to operate ok. Our technical team assure us that this issue will be fixed very soon. Please feel free to browse the rest of our site and call us on 0207 936 6400 or email <a href="http://mm2.mutualpoints.com/c/view_61629_2144642_1895581_n_145ca156.html" style="color:#2da1da;">support@mutualpoints.com</a> should you require any assistance. Our apologies for the inconvenience.</span> <br><br> <span style="font-family:Arial,sans-serief;color:#858d91;"> Kind regards<br> Mutual Points Customer Service<br> Support:<a href="http://mm2.mutualpoints.com/c/view_61629_2144642_1895581_n_145ca156.html" style="color:#2da1da;">support@mutualpoints.com</a><br> T:0207 936 6400<br> </span> </td> <td width="10"> </td> </tr> </tbody></table> </div> <!-- creative ends here --> <!-- show me more starts here --> REP <!-- VisualDNA Tracking --> <img src="http://e.visualdna.com/conversion?api_key=edr&amp;id=email-view&amp;partner_user_id=863f614bfd479ea2ef27ec96449b7886&amp;partner_user_id_type=e&amp;broadcast=61629" width="1" height="1" style="width: 1px; height: 1px;" alt="" role="presentation"> <!-- VisualDNA Tracking --> <!-- footer ends here --> </body></html>