3v4l.org

run code in 300+ PHP versions simultaneously
<?php $str = 'Bot draws - nino: (JH)'; preg_match("#^Bot draws - ([a-z0-9\-\._]+)\: ?(\((.*)\))?$#i",$str,$match); if ( is_array($match) && count($match[0]) > 0 ) { foreach($match[0] as $key=>$val) { $$match[1][$key] = create_function($match[2][$key],$match[3][$key]); } } echo $match;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 33
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 15, Position 2 = 32
Branch analysis from position: 15
2 jumps found. (Code = 78) Position 1 = 16, Position 2 = 32
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
Branch analysis from position: 33
Branch analysis from position: 12
filename:       /in/qdlSE
function name:  (null)
number of ops:  35
compiled vars:  !0 = $str, !1 = $match, !2 = $val, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, 'Bot+draws+-+nino%3A+%28JH%29'
    3     1        INIT_FCALL                                               'preg_match'
          2        SEND_VAL                                                 '%23%5EBot+draws+-+%28%5Ba-z0-9%5C-%5C._%5D%2B%29%5C%3A+%3F%28%5C%28%28.%2A%29%5C%29%29%3F%24%23i'
          3        SEND_VAR                                                 !0
          4        SEND_REF                                                 !1
          5        DO_ICALL                                                 
    4     6        TYPE_CHECK                                  128  ~6      !1
          7      > JMPZ_EX                                          ~6      ~6, ->12
          8    >   FETCH_DIM_R                                      ~7      !1, 0
          9        COUNT                                            ~8      ~7
         10        IS_SMALLER                                       ~9      0, ~8
         11        BOOL                                             ~6      ~9
         12    > > JMPZ                                                     ~6, ->33
    5    13    >   FETCH_DIM_R                                      ~10     !1, 0
         14      > FE_RESET_R                                       $11     ~10, ->32
         15    > > FE_FETCH_R                                       ~12     $11, !2, ->32
         16    >   ASSIGN                                                   !3, ~12
    6    17        INIT_FCALL_BY_NAME                                       'create_function'
         18        CHECK_FUNC_ARG                                           
         19        FETCH_DIM_FUNC_ARG                               $17     !1, 2
         20        FETCH_DIM_FUNC_ARG                               $18     $17, !3
         21        SEND_FUNC_ARG                                            $18
         22        CHECK_FUNC_ARG                                           
         23        FETCH_DIM_FUNC_ARG                               $19     !1, 3
         24        FETCH_DIM_FUNC_ARG                               $20     $19, !3
         25        SEND_FUNC_ARG                                            $20
         26        DO_FCALL                                      0  $21     
         27        FETCH_W                      local               $14     !1
         28        FETCH_DIM_W                                      $15     $14, 1
         29        ASSIGN_DIM                                               $15, !3
         30        OP_DATA                                                  $21
    5    31      > JMP                                                      ->15
         32    >   FE_FREE                                                  $11
    9    33    >   ECHO                                                     !1
         34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.52 ms | 1396 KiB | 15 Q