3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('~#-plugin-(\w+)(-(.+))*-#~', 'TEST $3', 'Text #-plugin-MyPlugin-id=1-#');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/htWad
function name:  (null)
number of ops:  7
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'preg_replace'
          1        SEND_VAL                                                 '%7E%23-plugin-%28%5Cw%2B%29%28-%28.%2B%29%29%2A-%23%7E'
          2        SEND_VAL                                                 'TEST+%243'
          3        SEND_VAL                                                 'Text+%23-plugin-MyPlugin-id%3D1-%23'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.7 ms | 1394 KiB | 15 Q