3v4l.org

run code in 300+ PHP versions simultaneously
<?php $html = <<<EOD <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <meta http-equiv="content-type"> <meta content="text/html"> <title>Bertoni - tašky s příběhem</title> <style type="text/css"> </style> </head> <body bgcolor="#edeeef" leftmargin="0" marginheigh="0" marginwidth="0" style="background-color:#edeeef" topmargin="0"><!--Pokud se vám zpráva nezobrazuje správně, klikněte zde.--> <table align="center" bgcolor="#FFFFFF" width="100%"> <tbody> <tr> <td> <table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="20"><font style="font-family:Arial,Helvetica,sans-serif;font-size: 11px; color: #7c7a7a; font-weight:normal">Nechte se zlákat kvalitními eko kabelkami.</font> <a href="&#91;WEB_VERSION_URL&#93;" style="color:#999999"><font style="font-family:Arial,Helvetica,sans-serif;font-size: 11px; color: #7c7a7a; font-weight:normal"> Klikněte zde.</font></a> </td> </tr> </tbody> </table> <!--logo MILVAI--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="100" width="600"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Milvai - Týdení inspirace" src="http://cdn.deliverio.cz/milvai1536/images/logo.gif" style="display:block; border:0;" title="Milvai - Týdenní inspirace" /></a> </td> </tr> </tbody> </table> </td> </tr> </tbody> </table> <!--banner--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="212" width="600"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Hlavní banner pro kampaň Bertoni - tašky s příběhem" src="http://cdn.deliverio.cz/milvai1536/images/banner.jpg" style="display:block; border:0;" title="Bertoni - tašky s příběhem" /></a> </td> </tr> </tbody> </table> <!--Text--> <table align="center" bgcolor="#FFFFFF" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="50" style="padding-left: 15px;" width="400"> <p style="font-family: Garamond;font-size: 15px;color: #666;text-align: left;margin-bottom: 0px;margin-top: 0px;">Designéři značky Bertoni ví, jak do každé tašky zakomponovat zajímavý příběh. Vybírejte z různých barevných variant a motivů. </p> </td> <td align="center" height="50" style="padding-right: 15px;" width="170"><a href="http://milvai.cz/bertoni-tasky-s-pribehem.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="right" alt="Zobrazit všechny produkty z nabídky Bertoni - tašky s příběhem" src="http://cdn.deliverio.cz/milvai1536/images/button2.png" style="display:block; border:0;" title="Zobrazit produkty" /></a> </td> </tr> </tbody> </table> <!--space--> <table align="center" cellpadding="0" cellspacing="0" height="6px" width="600"> <tbody> <tr> <td align="center" height="6px" width="600">&nbsp; </td> </tr> </tbody> </table> <!--produkty 1 řada--> <!--Ostatní kampaně--><!--socialni site--> <table align="center" cellpadding="0" cellspacing="0" height="20" width="600"> <tbody> <tr> <td>&nbsp; </td> </tr> </tbody> </table> <!--#--> <table align="center" cellpadding="0" cellspacing="0" height="20" width="600"> <tbody> <tr> <td>&nbsp; </td> </tr> </tbody> </table> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" width="600"><font style="font-family:Tahoma,Verdana,Arial; font-size:12px; color:#707070;" text-align="center">#milvaicz</font> </td> </tr> </tbody> </table> <!--konec--> <p>[CONSENT_FOOTER] </p> </body> </html> EOD; echo preg_replace('/<body(.*?)>((?:.|\n)*)<\/body>/', '<body><div$1>$2</div><div class="footer">FOOTER</div></body>', $html); echo "ERROR:" . preg_last_error();

preferences:
58.72 ms | 402 KiB | 5 Q