3v4l.org

run code in 300+ PHP versions simultaneously
<?php $search = "/[^<>agt](.*)[^g<a\/t>]/"; $replace = "your new inner text"; $string = "thanks <tag>i dont know what is here</tag>"; echo preg_replace($search,$replace,$string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/p507L
function name:  (null)
number of ops:  10
compiled vars:  !0 = $search, !1 = $replace, !2 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, '%2F%5B%5E%3C%3Eagt%5D%28.%2A%29%5B%5Eg%3Ca%5C%2Ft%3E%5D%2F'
    4     1        ASSIGN                                                   !1, 'your+new+inner+text'
    5     2        ASSIGN                                                   !2, 'thanks+%3Ctag%3Ei+dont+know+what+is+here%3C%2Ftag%3E'
    6     3        INIT_FCALL                                               'preg_replace'
          4        SEND_VAR                                                 !0
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !2
          7        DO_ICALL                                         $6      
          8        ECHO                                                     $6
          9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.49 ms | 1394 KiB | 15 Q