3v4l.org

run code in 300+ PHP versions simultaneously
<?php $FileContent = 'Bot draws - nino: (JH)'; preg_match_all("#^Bot draws - ([a-z0-9\-\._]+)\: ?(\((.*)\))?$#i",$FileContent,$Matches); if ( is_array($Matches) && isset($Matches[0]) && count($Matches[0]) > 0 ) { foreach ( $Matches[0] as $key=>$val ) { $$Matches[1][$key] = create_function($Matches[2][$key],$Matches[3][$key]); } } echo $Matches;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 8, Position 2 = 10
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 11, Position 2 = 15
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 36
Branch analysis from position: 16
2 jumps found. (Code = 77) Position 1 = 18, Position 2 = 35
Branch analysis from position: 18
2 jumps found. (Code = 78) Position 1 = 19, Position 2 = 35
Branch analysis from position: 19
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
Branch analysis from position: 35
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 35
Branch analysis from position: 36
Branch analysis from position: 15
Branch analysis from position: 10
filename:       /in/X8sTf
function name:  (null)
number of ops:  38
compiled vars:  !0 = $FileContent, !1 = $Matches, !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_all'
          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, ->10
          8    >   ISSET_ISEMPTY_DIM_OBJ                         0  ~7      !1, 0
          9        BOOL                                             ~6      ~7
         10    > > JMPZ_EX                                          ~6      ~6, ->15
         11    >   FETCH_DIM_R                                      ~8      !1, 0
         12        COUNT                                            ~9      ~8
         13        IS_SMALLER                                       ~10     0, ~9
         14        BOOL                                             ~6      ~10
         15    > > JMPZ                                                     ~6, ->36
    5    16    >   FETCH_DIM_R                                      ~11     !1, 0
         17      > FE_RESET_R                                       $12     ~11, ->35
         18    > > FE_FETCH_R                                       ~13     $12, !2, ->35
         19    >   ASSIGN                                                   !3, ~13
    6    20        INIT_FCALL_BY_NAME                                       'create_function'
         21        CHECK_FUNC_ARG                                           
         22        FETCH_DIM_FUNC_ARG                               $18     !1, 2
         23        FETCH_DIM_FUNC_ARG                               $19     $18, !3
         24        SEND_FUNC_ARG                                            $19
         25        CHECK_FUNC_ARG                                           
         26        FETCH_DIM_FUNC_ARG                               $20     !1, 3
         27        FETCH_DIM_FUNC_ARG                               $21     $20, !3
         28        SEND_FUNC_ARG                                            $21
         29        DO_FCALL                                      0  $22     
         30        FETCH_W                      local               $15     !1
         31        FETCH_DIM_W                                      $16     $15, 1
         32        ASSIGN_DIM                                               $16, !3
         33        OP_DATA                                                  $22
    5    34      > JMP                                                      ->18
         35    >   FE_FREE                                                  $12
    9    36    >   ECHO                                                     !1
         37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
155.01 ms | 1392 KiB | 15 Q