3v4l.org

run code in 500+ PHP versions simultaneously
<?php $re = '/(?:\[[^][]*]|\([^()]*\)|{[^{}]*})(*SKIP)(*F)|[^][(){}]+/m'; $str = 'Hello [123] {45} world (67) Hello There (8) [9] {0}'; $result = preg_replace($re, '', $str); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/br8n9
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%3F%3A%5C%5B%5B%5E%5D%5B%5D%2A%5D%7C%5C%28%5B%5E%28%29%5D%2A%5C%29%7C%7B%5B%5E%7B%7D%5D%2A%7D%29%28%2ASKIP%29%28%2AF%29%7C%5B%5E%5D%5B%28%29%7B%7D%5D%2B%2Fm'
    4     1        ASSIGN                                                       !1, 'Hello+%5B123%5D+%7B45%7D+world+%2867%29%0AHello+There+%288%29+%5B9%5D+%7B0%7D'
    7     2        FRAMELESS_ICALL_3                preg_replace        ~5      !0, ''
          3        OP_DATA                                                      !1
          4        ASSIGN                                                       !2, ~5
    9     5        ECHO                                                         !2
   10     6      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
158.39 ms | 2113 KiB | 13 Q