3v4l.org

run code in 300+ PHP versions simultaneously
<?php echo preg_replace('`{[^{}]+}(\((?>[^()]+|(?1))+\))`', '<$0>', 'test {22413}(ghfhgfhg(())sd(d)sf) s{1}(l(k)l))dfdsf {5}(45d4fsdf4)');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SOCPU
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                                                 '%60%7B%5B%5E%7B%7D%5D%2B%7D%28%5C%28%28%3F%3E%5B%5E%28%29%5D%2B%7C%28%3F1%29%29%2B%5C%29%29%60'
          2        SEND_VAL                                                 '%3C%240%3E'
          3        SEND_VAL                                                 'test+%7B22413%7D%28ghfhgfhg%28%28%29%29sd%28d%29sf%29+s%7B1%7D%28l%28k%29l%29%29dfdsf+%7B5%7D%2845d4fsdf4%29'
          4        DO_ICALL                                         $0      
          5        ECHO                                                     $0
          6      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
163.36 ms | 1385 KiB | 15 Q