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> </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--> <!--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/e99gR
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++++++++++++%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++++%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'
   80     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
   81     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:
156.28 ms | 1400 KiB | 17 Q