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();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3CXV8
function name:  (null)
number of ops:  12
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '++%3C%21DOCTYPE+html%3E%0A%3Chtml%3E%0A++%3Chead%3E%0A++++%3Cmeta+charset%3D%22utf-8%22%3E%0A++++%3Cmeta+http-equiv%3D%22content-type%22%3E%0A++++%3Cmeta+content%3D%22text%2Fhtml%22%3E%0A++++%3Ctitle%3EBertoni+-+ta%C5%A1ky+s+p%C5%99%C3%ADb%C4%9Bhem%3C%2Ftitle%3E%0A++++%3Cstyle+type%3D%22text%2Fcss%22%3E%0A++++%3C%2Fstyle%3E%0A++%3C%2Fhead%3E%0A++%3Cbody+bgcolor%3D%22%23edeeef%22+leftmargin%3D%220%22+marginheigh%3D%220%22+marginwidth%3D%220%22+style%3D%22background-color%3A%23edeeef%22+topmargin%3D%220%22%3E%3C%21--Pokud+se+v%C3%A1m+zpr%C3%A1va+nezobrazuje+spr%C3%A1vn%C4%9B%2C+klikn%C4%9Bte+zde.--%3E%0A++++%3Ctable+align%3D%22center%22+bgcolor%3D%22%23FFFFFF%22+width%3D%22100%25%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd%3E%0A++++++++++++%3Ctable+align%3D%22center%22+bgcolor%3D%22%23FFFFFF%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%22600%22%3E%0A++++++++++++++%3Ctbody%3E%0A++++++++++++++++%3Ctr%3E%0A++++++++++++++++++%3Ctd+align%3D%22center%22+height%3D%2220%22%3E%3Cfont+style%3D%22font-family%3AArial%2CHelvetica%2Csans-serif%3Bfont-size%3A+11px%3B+color%3A+%237c7a7a%3B+font-weight%3Anormal%22%3ENechte+se+zl%C3%A1kat+kvalitn%C3%ADmi+eko+kabelkami.%3C%2Ffont%3E+%3Ca+href%3D%22%26%2391%3BWEB_VERSION_URL%26%2393%3B%22+style%3D%22color%3A%23999999%22%3E%3Cfont+style%3D%22font-family%3AArial%2CHelvetica%2Csans-serif%3Bfont-size%3A+11px%3B+color%3A+%237c7a7a%3B+font-weight%3Anormal%22%3E+Klikn%C4%9Bte+zde.%3C%2Ffont%3E%3C%2Fa%3E%0A++++++++++++++++++%3C%2Ftd%3E%0A++++++++++++++++%3C%2Ftr%3E%0A++++++++++++++%3C%2Ftbody%3E%0A++++++++++++%3C%2Ftable%3E%0A++++++++++++%3C%21--logo+MILVAI--%3E%0A++++++++++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%22600%22%3E%0A++++++++++++++%3Ctbody%3E%0A++++++++++++++++%3Ctr%3E%0A++++++++++++++++++%3Ctd+align%3D%22center%22+height%3D%22100%22+width%3D%22600%22%3E%3Ca+href%3D%22http%3A%2F%2Fmilvai.cz%2Fbertoni-tasky-s-pribehem.html%3Futm_source%3Dnewsletter%26amp%3Butm_medium%3Demail%26amp%3Butm_campaign%3D1536-bertoni-tasky-s-pribehem%22%3E%3Cimg+align%3D%22center%22+alt%3D%22Milvai+-+T%C3%BDden%C3%AD+inspirace%22+src%3D%22http%3A%2F%2Fcdn.deliverio.cz%2Fmilvai1536%2Fimages%2Flogo.gif%22+style%3D%22display%3Ablock%3B+border%3A0%3B%22+title%3D%22Milvai+-+T%C3%BDdenn%C3%AD+inspirace%22+%2F%3E%3C%2Fa%3E%0A++++++++++++++++++%3C%2Ftd%3E%0A++++++++++++++++%3C%2Ftr%3E%0A++++++++++++++%3C%2Ftbody%3E%0A++++++++++++%3C%2Ftable%3E%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3C%21--banner--%3E%0A++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd+align%3D%22center%22+height%3D%22212%22+width%3D%22600%22%3E%3Ca+href%3D%22http%3A%2F%2Fmilvai.cz%2Fbertoni-tasky-s-pribehem.html%3Futm_source%3Dnewsletter%26amp%3Butm_medium%3Demail%26amp%3Butm_campaign%3D1536-bertoni-tasky-s-pribehem%22%3E%3Cimg+align%3D%22center%22+alt%3D%22Hlavn%C3%AD+banner+pro+kampa%C5%88+Bertoni+-+ta%C5%A1ky+s+p%C5%99%C3%ADb%C4%9Bhem%22+src%3D%22http%3A%2F%2Fcdn.deliverio.cz%2Fmilvai1536%2Fimages%2Fbanner.jpg%22+style%3D%22display%3Ablock%3B+border%3A0%3B%22+title%3D%22Bertoni+-+ta%C5%A1ky+s+p%C5%99%C3%ADb%C4%9Bhem%22+%2F%3E%3C%2Fa%3E%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3C%21--Text--%3E%0A++++%3Ctable+align%3D%22center%22+bgcolor%3D%22%23FFFFFF%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd+align%3D%22center%22+height%3D%2250%22+style%3D%22padding-left%3A+15px%3B%22+width%3D%22400%22%3E%0A++++++++++++%3Cp+style%3D%22font-family%3A+Garamond%3Bfont-size%3A+15px%3Bcolor%3A+%23666%3Btext-align%3A+left%3Bmargin-bottom%3A+0px%3Bmargin-top%3A+0px%3B%22%3EDesign%C3%A9%C5%99i+zna%C4%8Dky+Bertoni+v%C3%AD%2C+jak+do+ka%C5%BEd%C3%A9+ta%C5%A1ky+zakomponovat+zaj%C3%ADmav%C3%BD+p%C5%99%C3%ADb%C4%9Bh.+Vyb%C3%ADrejte+z+r%C5%AFzn%C3%BDch+barevn%C3%BDch+variant+a+motiv%C5%AF.%0A++++++++++++%3C%2Fp%3E%0A++++++++++%3C%2Ftd%3E%0A++++++++++%3Ctd+align%3D%22center%22+height%3D%2250%22+style%3D%22padding-right%3A+15px%3B%22+width%3D%22170%22%3E%3Ca+href%3D%22http%3A%2F%2Fmilvai.cz%2Fbertoni-tasky-s-pribehem.html%3Futm_source%3Dnewsletter%26amp%3Butm_medium%3Demail%26amp%3Butm_campaign%3D1536-bertoni-tasky-s-pribehem%22%3E%3Cimg+align%3D%22right%22+alt%3D%22Zobrazit+v%C5%A1echny+produkty+z+nab%C3%ADdky+Bertoni+-+ta%C5%A1ky+s+p%C5%99%C3%ADb%C4%9Bhem%22+src%3D%22http%3A%2F%2Fcdn.deliverio.cz%2Fmilvai1536%2Fimages%2Fbutton2.png%22+style%3D%22display%3Ablock%3B+border%3A0%3B%22+title%3D%22Zobrazit+produkty%22+%2F%3E%3C%2Fa%3E%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3C%21--space--%3E%0A++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+height%3D%226px%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd+align%3D%22center%22+height%3D%226px%22+width%3D%22600%22%3E%26nbsp%3B%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3C%21--produkty+1+%C5%99ada--%3E%0A++++%0A++++%3C%21--Ostatn%C3%AD+kampan%C4%9B--%3E%3C%21--socialni+site--%3E%0A++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+height%3D%2220%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd%3E%26nbsp%3B%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A%0A++++%3C%21--%23--%3E%0A++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+height%3D%2220%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd%3E%26nbsp%3B%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3Ctable+align%3D%22center%22+cellpadding%3D%220%22+cellspacing%3D%220%22+width%3D%22600%22%3E%0A++++++%3Ctbody%3E%0A++++++++%3Ctr%3E%0A++++++++++%3Ctd+align%3D%22center%22+width%3D%22600%22%3E%3Cfont+style%3D%22font-family%3ATahoma%2CVerdana%2CArial%3B+font-size%3A12px%3B+color%3A%23707070%3B%22+text-align%3D%22center%22%3E%23milvaicz%3C%2Ffont%3E%0A++++++++++%3C%2Ftd%3E%0A++++++++%3C%2Ftr%3E%0A++++++%3C%2Ftbody%3E%0A++++%3C%2Ftable%3E%0A++++%3C%21--konec--%3E%0A++++%3Cp%3E%5BCONSENT_FOOTER%5D%0A++++%3C%2Fp%3E%0A++%3C%2Fbody%3E%0A%3C%2Fhtml%3E%0A'
  107     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%2F%3Cbody%28.%2A%3F%29%3E%28%28%3F%3A.%7C%5Cn%29%2A%29%3C%5C%2Fbody%3E%2F'
          3        SEND_VAL                                                 '%3Cbody%3E%3Cdiv%241%3E%242%3C%2Fdiv%3E%3Cdiv+class%3D%22footer%22%3EFOOTER%3C%2Fdiv%3E%3C%2Fbody%3E'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
  108     7        INIT_FCALL                                               'preg_last_error'
          8        DO_ICALL                                         $3      
          9        CONCAT                                           ~4      'ERROR%3A', $3
         10        ECHO                                                     ~4
         11      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.09 ms | 1392 KiB | 17 Q