3v4l.org

run code in 300+ PHP versions simultaneously
<?php $h = "asdasd __asdasd__ frer __ desg df -+ br __"; preg_match_all('/_\_(.*?)_\_/i', $h, $r, PREG_PATTERN_ORDER); $rr = preg_replace('/_\_(.*?)_\_/i', '$$$', $h); print_r($rr);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/2bKd6
function name:  (null)
number of ops:  17
compiled vars:  !0 = $h, !1 = $r, !2 = $rr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'asdasd+__asdasd__+frer+__+desg+df+-%2B+br+__'
    4     1        INIT_FCALL                                               'preg_match_all'
          2        SEND_VAL                                                 '%2F_%5C_%28.%2A%3F%29_%5C_%2Fi'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        SEND_VAL                                                 1
          6        DO_ICALL                                                 
    6     7        INIT_FCALL                                               'preg_replace'
          8        SEND_VAL                                                 '%2F_%5C_%28.%2A%3F%29_%5C_%2Fi'
          9        SEND_VAL                                                 '%24%24%24'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                         $5      
         12        ASSIGN                                                   !2, $5
    8    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.09 ms | 1386 KiB | 19 Q