3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a=preg_replace('/(\$|\\\\)/', '\\\\\1','da$i$1tg\\ut\\1'); print preg_replace('/foo/', $a, 'barfoobaz');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Th3fC
function name:  (null)
number of ops:  13
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%28%5C%24%7C%5C%5C%29%2F'
          2        SEND_VAL                                                 '%5C%5C%5C1'
          3        SEND_VAL                                                 'da%24i%241tg%5Cut%5C1'
          4        DO_ICALL                                         $1      
          5        ASSIGN                                                   !0, $1
    3     6        INIT_FCALL                                               'preg_replace'
          7        SEND_VAL                                                 '%2Ffoo%2F'
          8        SEND_VAR                                                 !0
          9        SEND_VAL                                                 'barfoobaz'
         10        DO_ICALL                                         $3      
         11        ECHO                                                     $3
         12      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.75 ms | 1385 KiB | 15 Q