3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(\{([GUW])})\1*|./'; $str = '{1}{G}{G}{U}{U}{W}'; $result = preg_replace($re, '$2', $str); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/DELOs
function name:  (null)
number of ops:  7
compiled vars:  !0 = $re, !1 = $str, !2 = $result
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                       !0, '%2F%28%5C%7B%28%5BGUW%5D%29%7D%29%5C1%2A%7C.%2F'
    4     1        ASSIGN                                                       !1, '%7B1%7D%7BG%7D%7BG%7D%7BU%7D%7BU%7D%7BW%7D'
    5     2        FRAMELESS_ICALL_3                preg_replace        ~5      !0, '%242'
          3        OP_DATA                                                      !1
          4        ASSIGN                                                       !2, ~5
    7     5        ECHO                                                         !2
    8     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
162.66 ms | 1873 KiB | 13 Q