3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('/:\/(\S)?/', ':#{ROOT_PREFIX}\/$1', "a(href:/)");
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/kgRIl
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%2F%3A%5C%2F%28%5CS%29%3F%2F'
          2        SEND_VAL                                                 '%3A%23%7BROOT_PREFIX%7D%5C%2F%241'
          3        SEND_VAL                                                 'a%28href%3A%2F%29'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
173.26 ms | 1397 KiB | 16 Q