3v4l.org

run code in 300+ PHP versions simultaneously
<?php $xml = '<![CDATA[ <p>Við vorum að fá inn til okkar forfallaholl í Laugardalsá á best tíma. Annarsvegar er um að ræða hollið 18-21. júlí og síðan hollið 24-27. júlí. Bæði eru hollin á frábærum tíma í ánn. Þó svo um 3ja daga holl sé að ræða, er að hægt að skoða staka daga eða 1 1/2 eða 2 </p> <p>The post <a rel="nofollow" href="https://a.com/post-title/">Laugardalsá &#8211; forfallaholl á besta tíma</a> appeared first on <a rel="nofollow" href="https://a.com">a.com</a>.</p> ]]>'; $finds = [ '~<p>The post <a rel="nofollow" href="https?://[a-z]+\.com[^"]*">.*?</a> appeared first on <a rel="nofollow" href="https?://[a-z]+\.com[^"]*">.*?</a>.</p>~u', '~^<!\[CDATA\[~', '~\]\]>$~' ]; var_export(trim(strip_tags(preg_replace($finds, '', $xml))));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/STReB
function name:  (null)
number of ops:  17
compiled vars:  !0 = $xml, !1 = $finds
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3C%21%5BCDATA%5B%0A++++%3Cp%3EVi%C3%B0+vorum+a%C3%B0+f%C3%A1+inn+til+okkar+forfallaholl+%C3%AD+Laugardals%C3%A1+%C3%A1+best+t%C3%ADma.+Annarsvegar+er+um+a%C3%B0+r%C3%A6%C3%B0a+holli%C3%B0+18-21.+j%C3%BAl%C3%AD+og+s%C3%AD%C3%B0an+holli%C3%B0+24-27.+j%C3%BAl%C3%AD.+B%C3%A6%C3%B0i+eru+hollin+%C3%A1+fr%C3%A1b%C3%A6rum+t%C3%ADma+%C3%AD+%C3%A1nn.+%C3%9E%C3%B3+svo+um+3ja+daga+holl+s%C3%A9+a%C3%B0+r%C3%A6%C3%B0a%2C+er+a%C3%B0+h%C3%A6gt+a%C3%B0+sko%C3%B0a+staka+daga+e%C3%B0a+1+1%2F2+e%C3%B0a+2%0A++++%3C%2Fp%3E%0A++++%3Cp%3EThe+post+%3Ca+rel%3D%22nofollow%22+href%3D%22https%3A%2F%2Fa.com%2Fpost-title%2F%22%3ELaugardals%C3%A1+%26%238211%3B+forfallaholl+%C3%A1+besta+t%C3%ADma%3C%2Fa%3E+appeared+first+on+%3Ca+rel%3D%22nofollow%22+href%3D%22https%3A%2F%2Fa.com%22%3Ea.com%3C%2Fa%3E.%3C%2Fp%3E%0A%5D%5D%3E'
    8     1        ASSIGN                                                   !1, <array>
   14     2        INIT_FCALL                                               'var_export'
          3        INIT_FCALL                                               'trim'
          4        INIT_FCALL                                               'strip_tags'
          5        INIT_FCALL                                               'preg_replace'
          6        SEND_VAR                                                 !1
          7        SEND_VAL                                                 ''
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                         $4      
         10        SEND_VAR                                                 $4
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        DO_ICALL                                         $6      
         14        SEND_VAR                                                 $6
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
130.91 ms | 1400 KiB | 21 Q