3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Magna adipisicing veniam est amet labore do mollit deserunt esse. Ipsum minim sit [[consectetur qui consequat]] elit id irure. Occaecat magna do voluptate commodo veniam nulla adipisicing.'; $pattern = '~(?: \G (?!\A) | \[\[ (?= [^]]* ]] ) ) \s* \K [^]\s]~x'; $result = preg_replace($pattern, '*', $str); echo $result;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/oedH5
function name:  (null)
number of ops:  10
compiled vars:  !0 = $str, !1 = $pattern, !2 = $result
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, 'Magna+adipisicing+veniam+est+amet+labore+do+mollit+deserunt+esse.+Ipsum+minim+sit+%5B%5Bconsectetur+qui+consequat%5D%5D+elit+id+irure.+Occaecat+magna+do+voluptate+commodo+veniam+nulla+adipisicing.'
    5     1        ASSIGN                                                   !1, '%7E%28%3F%3A+%5CG+%28%3F%21%5CA%29+%7C+%5C%5B%5C%5B+%28%3F%3D+%5B%5E%5D%5D%2A+%5D%5D+%29+%29+%5Cs%2A+%5CK+%5B%5E%5D%5Cs%5D%7Ex'
    7     2        INIT_FCALL                                               'preg_replace'
          3        SEND_VAR                                                 !1
          4        SEND_VAL                                                 '%2A'
          5        SEND_VAR                                                 !0
          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:
135.2 ms | 953 KiB | 14 Q