3v4l.org

run code in 300+ PHP versions simultaneously
<?php $string = '{\rtlch\fcs1 \af56 \ltrch\fcs0 \i\f56\insrsid13383763\charrsid4210380 \\\'e1}'; echo preg_replace('#(\{\\\\rtlch\\\\fcs1 \\\\af56 \\\\ltrch\\\\fcs0 \\\\i\\\\f56\\\\insrsid13383763\\\\charrsid4210380)( \\\\\'e1)(\})#', '$1 ciao $3', $string);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/3Xbs5
function name:  (null)
number of ops:  8
compiled vars:  !0 = $string
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, '%7B%5Crtlch%5Cfcs1+%5Caf56+%5Cltrch%5Cfcs0+%5Ci%5Cf56%5Cinsrsid13383763%5Ccharrsid4210380+%5C%27e1%7D'
    4     1        INIT_FCALL                                               'preg_replace'
          2        SEND_VAL                                                 '%23%28%5C%7B%5C%5Crtlch%5C%5Cfcs1+%5C%5Caf56+%5C%5Cltrch%5C%5Cfcs0+%5C%5Ci%5C%5Cf56%5C%5Cinsrsid13383763%5C%5Ccharrsid4210380%29%28+%5C%5C%27e1%29%28%5C%7D%29%23'
          3        SEND_VAL                                                 '%241+ciao+%243'
          4        SEND_VAR                                                 !0
          5        DO_ICALL                                         $2      
          6        ECHO                                                     $2
          7      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.5 ms | 1385 KiB | 15 Q