3v4l.org

run code in 300+ PHP versions simultaneously
<?php $your_string = "<p>Hi this is &lt;&lt;name&gt;&gt; and I am living in &lt;&lt;address&gt;&gt;</p>"; echo preg_replace('~(&lt;&lt;)(.*?)(&gt;&gt;)~',"$$2",$your_string)."\n"; echo str_replace(array("&lt;&lt;","&gt;&gt;"),array("$",""),$your_string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1jpRA
function name:  (null)
number of ops:  15
compiled vars:  !0 = $your_string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%3Cp%3EHi+this+is+%26lt%3B%26lt%3Bname%26gt%3B%26gt%3B+and+I+am+living+in+%26lt%3B%26lt%3Baddress%26gt%3B%26gt%3B%3C%2Fp%3E'
    3     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%7E%28%26lt%3B%26lt%3B%29%28.%2A%3F%29%28%26gt%3B%26gt%3B%29%7E'
          3        SEND_VAL                                                 '%24%242'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        CONCAT                                           ~3      $2, '%0A'
          7        ECHO                                                     ~3
    4     8        INIT_FCALL                                               'str_replace'
          9        SEND_VAL                                                 <array>
         10        SEND_VAL                                                 <array>
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                         $4      
         13        ECHO                                                     $4
         14      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.04 ms | 1010 KiB | 15 Q