3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '&lt;a href="http://lenta.ru/news/2015/07/23/tsipras/" &gt; &amp;laquo;Лента.ру&amp;raquo; &lt;/a&gt;'; $aq = preg_replace('~&lt;a\b[^&gt;]*+&gt;|&lt;/a\b[^&gt;]*+&gt;~', '', $string); echo $aq; echo '<br /><br /><br />'.strip_tags(htmlspecialchars_decode($string), '<a>');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/WQ1JZ
function name:  (null)
number of ops:  18
compiled vars:  !0 = $string, !1 = $aq
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%26lt%3Ba+href%3D%22http%3A%2F%2Flenta.ru%2Fnews%2F2015%2F07%2F23%2Ftsipras%2F%22+%26gt%3B+%26amp%3Blaquo%3B%D0%9B%D0%B5%D0%BD%D1%82%D0%B0.%D1%80%D1%83%26amp%3Braquo%3B+%26lt%3B%2Fa%26gt%3B'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%26lt%3Ba%5Cb%5B%5E%26gt%3B%5D%2A%2B%26gt%3B%7C%26lt%3B%2Fa%5Cb%5B%5E%26gt%3B%5D%2A%2B%26gt%3B%7E'
          3        SEND_VAL                                                 ''
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $3      
          6        ASSIGN                                                   !1, $3
    5     7        ECHO                                                     !1
    7     8        INIT_FCALL                                               'strip_tags'
          9        INIT_FCALL                                               'htmlspecialchars_decode'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        SEND_VAR                                                 $5
         13        SEND_VAL                                                 '%3Ca%3E'
         14        DO_ICALL                                         $6      
         15        CONCAT                                           ~7      '%3Cbr+%2F%3E%3Cbr+%2F%3E%3Cbr+%2F%3E', $6
         16        ECHO                                                     ~7
         17      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.66 ms | 1395 KiB | 19 Q