3v4l.org

run code in 300+ 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:  10
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        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !0
          4        SEND_VAL                                                 ''
          5        SEND_VAR                                                 !1
          6        DO_ICALL                                         $5      
          7        ASSIGN                                                   !2, $5
    9     8        ECHO                                                     !2
   10     9      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.03 ms | 991 KiB | 14 Q