3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19797.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Rozeta"><img align="center" alt="Kabelka Rozeta" src="http://cdn.deliverio.cz/milvai1536/images/produkt-01.jpg" style="display:block; border:0;" title="Kabelka Rozeta" /></a> </td> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19727.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Kola"><img align="center" alt="Kabelka Kola" src="http://cdn.deliverio.cz/milvai1536/images/produkt-02.jpg" style="display:block; border:0;" title="Kabelka Kola" /></a> </td> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19682.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Strom"><img align="center" alt="Kabelka Strom" src="http://cdn.deliverio.cz/milvai1536/images/produkt-03.jpg" style="display:block; border:0;" title="Kabelka Strom" /></a> </td> </tr> </tbody> </table> <!--produkty 2 řada--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19982.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Secese"><img align="center" alt="Kabelka Secese" src="http://cdn.deliverio.cz/milvai1536/images/produkt-04.jpg" style="display:block; border:0;" title="Kabelka Secese" /></a> </td> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19902.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Kytice"><img align="center" alt="Kabelka Kytice" src="http://cdn.deliverio.cz/milvai1536/images/produkt-05.jpg" style="display:block; border:0;" title="Kabelka Kytice" /></a> </td> <td align="center" height="263" width="200"><a href="http://milvai.cz/catalog/product/view/id/19827.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-Afrika"><img align="center" alt="Kabelka Afrika" src="http://cdn.deliverio.cz/milvai1536/images/produkt-06.jpg" style="display:block; border:0;" title="Kabelka Afrika" /></a> </td> </tr> </tbody> </table> <!--Dobrava zdarma--> <table align="center" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="43" width="600"><img align="center" alt="Doprava zdarama při nákupu nad 1600Kč" src="http://cdn.deliverio.cz/milvai1536/images/doprava.jpg" style="display:block; border:0; padding-top: 12px; padding-bottom: 18px;" title="Doprava zdarma" /> </td> </tr> </tbody> </table> <!--Další kampaně--> <table align="center" bgcolor="" cellpadding="0" cellspacing="0" width="600"> <tbody> <tr> <td align="center" height="40" width="600"><img align="center" alt="Ostatní nabídky na milvai.cz" src="http://cdn.deliverio.cz/milvai1536/images/dalsi.jpg" style="display:block; border:0;" title="Další kampaně" /> </td> </tr> </tbody> </table> <!--Ostatní kampaně pozadí--> <table align="center" bgcolor="#FFFFFF" cellpadding="3px" cellspacing="0" width="600"> <tbody> <tr> <td height="120" style="padding: 0px 3px 3px 15px;" width="282"><a href="http://milvai.cz/pierre-cardin.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Pierre Cardin" src="http://cdn.deliverio.cz/milvai1536/images/pierre.jpg" style="display:block; border:0;" title="Kampaň Pierre Cardin" /></a> </td> <td height="120" style="padding: 0px 15px 3px 3px;" width="282"><a href="http://milvai.cz/domaci-zavarovani.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Domácí zavařování" src="http://cdn.deliverio.cz/milvai1536/images/zavar.jpg" style="display:block; border:0;" title="Kampaň Domácí zavařování" /></a> </td> </tr> <tr> <td height="120" style="padding: 3px 3px 0px 15px;" width="282"><a href="http://milvai.cz/poklady-do-pokojicku.html?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536-bertoni-tasky-s-pribehem"><img align="center" alt="Poklady do pokojíčku" src="http://cdn.deliverio.cz/milvai1536/images/poklady.jpg" style="display:block; border:0;" title="Kampaň Poklady do pokojíčku" /></a> </td> <td height="120" style="padding: 3px 15px 0px 3px;" width="282"><a href="http://blog.milvai.cz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_term=1536&amp;utm_content=blog"><img align="center" alt="Blog" src="http://cdn.deliverio.cz/milvai1536/images/blog.jpg" style="display:block; border:0;" title="Blog" /> </a> </td> </tr> <tr> <td height="15px" width="600px">&nbsp; </td> </tr> </tbody> </table> <!--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" bgcolor="#c7c6c6" cellpadding="0" cellspacing="0" height="42" width="600"> <tbody> <tr> <td align="center" height="42" width="216">&nbsp; </td> <td align="center" height="42" width="56"><a href="http://plus.google.com/+MilvaiCz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=1536&amp;utm_content=g+"><img align="center" alt="Google+" src="http://cdn.deliverio.cz/milvai1536/images/g+.jpg" style="display:block; border:0;" title="Google+" /></a> </td> <td align="center" height="42" width="56"><a href="https://www.facebook.com/milvaicz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_term=1536&amp;utm_content=facebook"><img align="center" alt="Facebook" src="http://cdn.deliverio.cz/milvai1536/images/fb.jpg" style="display:block; border:0;" title="Facebook" /></a> </td> <td align="center" height="42" width="56"><a href="http://blog.milvai.cz/?utm_source=newsletter&amp;utm_medium=email&amp;utm_term=1536&amp;utm_content=blog"><img align="center" alt="Blog" src="http://cdn.deliverio.cz/milvai1536/images/blg.jpg" style="display:block; border:0;" title="Blog" /></a> </td> <td align="center" height="42" width="216">&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();
based on eTvgk
Output for 7.0.0 - 7.2.0
ERROR:6
Output for 5.3.20 - 5.6.28

Process exited with code 139.