3v4l.org

run code in 300+ PHP versions simultaneously
<?php function _remove_between($tag,$subject) { return preg_replace("/".$tag.".+?".$tag."/i", "", $subject); } $html = '{% load ad_tags %}{% load smart_if %}<div id="wrapper">{% set_list 1 2 as sub_0_range %}{% set_list 3 4 5 6 7 8 9 as sub_1_range %}{% for ad in ads %}{% if forloop.counter in sub_0_range %}<div class="sub_0">{% if forloop.counter == sub_0_range.0 %}<div id="header"> <h1>Great Auto Insurance Rates!</h1> <h2>Click on a handful of the companies below to get your rates.</h2> </div><div id="featured-listings"> <p class="listing-grp-title"><strong>Featured Insurance Providers</strong></p>{% endif %} <!--WRAPPERSTART--><div id="header"> <h1>Great Auto Insurance Rates!</h1> <h2>Click on a handful of the companies below to get your rates.</h2> </div><div id="featured-listings"> <p class="listing-grp-title"><strong>Featured Insurance Providers</strong></p><!--WRAPPERSTART--> <div class="featured-wrap"> <div class="star"><img src="http://dev-15-php.datalot.com/images/ad_temp/star.png" alt="star" /></div> <div class="container"> <div class="logo"> <a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/feature-logo2.png" alt="" /></a> </div> <div class="copy"> <p class="headline"><a href="">{{ad.headline|safe}}</a></p> {{ad.body|safe}} </div> <div class="btn"><a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/button_top3.gif" alt="Free Quote" /></a></div> <div class="clear"></div> </div> </div> <div class="clear"></div> {% if forloop.counter == sub_0_range|last or forloop.last %}</div>{% endif %}</div>{% else %}{% if forloop.counter in sub_1_range %}<div class="sub_1">{% if forloop.counter == sub_1_range.0 %}<div id="top-listings">{% endif %} <div class="top-wrap"> <div><p class="number">{{forloop.counter|add:-2}}</p></div> <div class="container"> <div class="logo"> <a href=""><img class="featured-logo" src="http://dev-15-php.datalot.com/images/ad_temp/feature-logo2.png" alt="" /></a> </div> <div class="copy"> <p class="headline"><a href="">{{ad.headline|safe}}</a></p> {{ad.body|safe}} </div> <div class="btn"><a href=""><img src="http://dev-15-php.datalot.com/images/ad_temp/button_top3.gif" alt="Free Quote" /></a></div> <div class="clear"></div> </div> <div class="clear"></div> </div> {% if forloop.counter == sub_1_range|last or forloop.last %}</div></div>{% endif %}</div>{% else %}<!-- DEFAULT --><!-- DEFAULT -->{% endif %}{% endif %}{% endfor %}</div>'; $html = _remove_between('<!--WRAPPERSTART-->',$html); echo $html;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v437e
function name:  (null)
number of ops:  8
compiled vars:  !0 = $html
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ASSIGN                                                   !0, '%7B%25+load+ad_tags+%25%7D%7B%25+load+smart_if+%25%7D%3Cdiv+id%3D%22wrapper%22%3E%7B%25+set_list+1+2++as+sub_0_range+%25%7D%7B%25+set_list+3+4+5+6+7+8+9++as+sub_1_range+%25%7D%7B%25+for+ad+in+ads+%25%7D%7B%25+if+forloop.counter+in+sub_0_range+%25%7D%3Cdiv+class%3D%22sub_0%22%3E%7B%25+if+forloop.counter+%3D%3D+sub_0_range.0+%25%7D%3Cdiv+id%3D%22header%22%3E%0A++++%3Ch1%3EGreat+Auto+Insurance+Rates%21%3C%2Fh1%3E%0A++++%3Ch2%3EClick+on+a+handful+of+the+companies+below+to+get+your+rates.%3C%2Fh2%3E%0A++%3C%2Fdiv%3E%3Cdiv+id%3D%22featured-listings%22%3E%0A++++%3Cp+class%3D%22listing-grp-title%22%3E%3Cstrong%3EFeatured+Insurance+Providers%3C%2Fstrong%3E%3C%2Fp%3E%7B%25+endif+%25%7D+%3C%21--WRAPPERSTART--%3E%3Cdiv+id%3D%22header%22%3E%0A++++%3Ch1%3EGreat+Auto+Insurance+Rates%21%3C%2Fh1%3E%0A++++%3Ch2%3EClick+on+a+handful+of+the+companies+below+to+get+your+rates.%3C%2Fh2%3E%0A++%3C%2Fdiv%3E%3Cdiv+id%3D%22featured-listings%22%3E%0A++++%3Cp+class%3D%22listing-grp-title%22%3E%3Cstrong%3EFeatured+Insurance+Providers%3C%2Fstrong%3E%3C%2Fp%3E%3C%21--WRAPPERSTART--%3E%0A++++%3Cdiv+class%3D%22featured-wrap%22%3E%0A++++++%3Cdiv+class%3D%22star%22%3E%3Cimg+src%3D%22http%3A%2F%2Fdev-15-php.datalot.com%2Fimages%2Fad_temp%2Fstar.png%22+alt%3D%22star%22+%2F%3E%3C%2Fdiv%3E%0A++++++%3Cdiv+class%3D%22container%22%3E%0A++++++++%3Cdiv+class%3D%22logo%22%3E%0A++++++++++%3Ca+href%3D%22%22%3E%3Cimg+src%3D%22http%3A%2F%2Fdev-15-php.datalot.com%2Fimages%2Fad_temp%2Ffeature-logo2.png%22+alt%3D%22%22+%2F%3E%3C%2Fa%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22copy%22%3E%0A++++++++++%3Cp+class%3D%22headline%22%3E%3Ca+href%3D%22%22%3E%7B%7Bad.headline%7Csafe%7D%7D%3C%2Fa%3E%3C%2Fp%3E%0A++++++++++%7B%7Bad.body%7Csafe%7D%7D%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22btn%22%3E%3Ca+href%3D%22%22%3E%3Cimg+src%3D%22http%3A%2F%2Fdev-15-php.datalot.com%2Fimages%2Fad_temp%2Fbutton_top3.gif%22+alt%3D%22Free+Quote%22+%2F%3E%3C%2Fa%3E%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A++++++%3C%2Fdiv%3E%0A++++%3C%2Fdiv%3E++%0A++++%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A++%7B%25+if+forloop.counter+%3D%3D+sub_0_range%7Clast+or+forloop.last+%25%7D%3C%2Fdiv%3E%7B%25+endif+%25%7D%3C%2Fdiv%3E%7B%25+else+%25%7D%7B%25+if+forloop.counter+in+sub_1_range+%25%7D%3Cdiv+class%3D%22sub_1%22%3E%7B%25+if+forloop.counter+%3D%3D+sub_1_range.0+%25%7D%3Cdiv+id%3D%22top-listings%22%3E%7B%25+endif+%25%7D%0A++%3Cdiv+class%3D%22top-wrap%22%3E%0A++++++%3Cdiv%3E%3Cp+class%3D%22number%22%3E%7B%7Bforloop.counter%7Cadd%3A-2%7D%7D%3C%2Fp%3E%3C%2Fdiv%3E++++%0A++++++%3Cdiv+class%3D%22container%22%3E%0A++++++++%3Cdiv+class%3D%22logo%22%3E%0A++++++++++%3Ca+href%3D%22%22%3E%3Cimg+class%3D%22featured-logo%22+src%3D%22http%3A%2F%2Fdev-15-php.datalot.com%2Fimages%2Fad_temp%2Ffeature-logo2.png%22+alt%3D%22%22+%2F%3E%3C%2Fa%3E%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22copy%22%3E%0A++++++++++%3Cp+class%3D%22headline%22%3E%3Ca+href%3D%22%22%3E%7B%7Bad.headline%7Csafe%7D%7D%3C%2Fa%3E%3C%2Fp%3E%0A++++++++++%7B%7Bad.body%7Csafe%7D%7D%0A++++++++%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22btn%22%3E%3Ca+href%3D%22%22%3E%3Cimg+src%3D%22http%3A%2F%2Fdev-15-php.datalot.com%2Fimages%2Fad_temp%2Fbutton_top3.gif%22+alt%3D%22Free+Quote%22+%2F%3E%3C%2Fa%3E%3C%2Fdiv%3E%0A++++++++%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A++++++%3C%2Fdiv%3E%0A++++++%3Cdiv+class%3D%22clear%22%3E%3C%2Fdiv%3E%0A++++%3C%2Fdiv%3E++%0A%7B%25+if+forloop.counter+%3D%3D+sub_1_range%7Clast+or+forloop.last+%25%7D%3C%2Fdiv%3E%3C%2Fdiv%3E%7B%25+endif+%25%7D%3C%2Fdiv%3E%7B%25+else+%25%7D%3C%21--+DEFAULT+--%3E%3C%21--+DEFAULT+--%3E%7B%25+endif+%25%7D%7B%25+endif+%25%7D%7B%25+endfor+%25%7D%3C%2Fdiv%3E'
   46     1        INIT_FCALL                                               '_remove_between'
          2        SEND_VAL                                                 '%3C%21--WRAPPERSTART--%3E'
          3        SEND_VAR                                                 !0
          4        DO_FCALL                                      0  $2      
          5        ASSIGN                                                   !0, $2
   47     6        ECHO                                                     !0
          7      > RETURN                                                   1

Function _remove_between:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/v437e
function name:  _remove_between
number of ops:  13
compiled vars:  !0 = $tag, !1 = $subject
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   RECV                                             !0      
          1        RECV                                             !1      
    3     2        INIT_FCALL                                               'preg_replace'
          3        CONCAT                                           ~2      '%2F', !0
          4        CONCAT                                           ~3      ~2, '.%2B%3F'
          5        CONCAT                                           ~4      ~3, !0
          6        CONCAT                                           ~5      ~4, '%2Fi'
          7        SEND_VAL                                                 ~5
          8        SEND_VAL                                                 ''
          9        SEND_VAR                                                 !1
         10        DO_ICALL                                         $6      
         11      > RETURN                                                   $6
    4    12*     > RETURN                                                   null

End of function _remove_between

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.49 ms | 1394 KiB | 16 Q