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); preg_replace('/_\_(.*?)_\_/i', '//', $h); print_r($r);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/bcJsm
function name:  (null)
number of ops:  16
compiled vars:  !0 = $h, !1 = $r
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                                                 '%2F%2F'
         10        SEND_VAR                                                 !0
         11        DO_ICALL                                                 
    8    12        INIT_FCALL                                               'print_r'
         13        SEND_VAR                                                 !1
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.73 ms | 1394 KiB | 19 Q