3v4l.org

run code in 300+ PHP versions simultaneously
<?php if(!$vbulletin) { global $vbulletin; } $ncun_lasthook='userdata_postsave'; if(file_exists(DIR.'/includes/ncun_hooks/'.$ncun_lasthook.'.php')) { return include DIR . '/includes/ncun_hooks/' . $ncun_lasthook . '.php'; } switch ($ncun_lasthook) { case 'useradmin_update_save': $ncun_is_admincp=true; break; case 'userdata_postsave': global $ncun_is_admincp; if (true) { // Set the names. $userinfo contains the current (old) name and $_POST['user'] contains the new name $oldname = 'sdlkfcunvls'; $newname = 'dfljkndfl'; // Create the message for the usernote. // To edit it use the phrase manager and find 'name_changed_from_x_to_y' $usernote_message = 'dfbd'; if (!empty($ncun_is_admincp)) { $poster = $vbulletin->userinfo['userid']; } else { $poster = $vbulletin->options['ncun_default_poster']; } if (!$poster) $poster=1; // Create the usernote $db->query_write(" INSERT INTO " . TABLE_PREFIX . "usernote (message, dateline, userid, posterid, title, allowsmilies) VALUES ('" . $db->escape_string($usernote_message) . "', " . TIMENOW . ", " . ('sdfvs') . ", " . $poster . ", '".$vbphrase['ncun_usernote_title']."', 1) "); } break; } unset($ncun_lasthook);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 43) Position 1 = 2, Position 2 = 3
Branch analysis from position: 2
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 18
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
4 jumps found. (Code = 188) Position 1 = 24, Position 2 = 26, Position 3 = 66, Position 4 = 19
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 26
2 jumps found. (Code = 43) Position 1 = 28, Position 2 = 65
Branch analysis from position: 28
2 jumps found. (Code = 43) Position 1 = 34, Position 2 = 38
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 41
Branch analysis from position: 41
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 44
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
Branch analysis from position: 44
Branch analysis from position: 38
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 44
Branch analysis from position: 43
Branch analysis from position: 44
Branch analysis from position: 65
Branch analysis from position: 66
Branch analysis from position: 19
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 24
Branch analysis from position: 21
2 jumps found. (Code = 44) Position 1 = 23, Position 2 = 26
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 66
Branch analysis from position: 66
Branch analysis from position: 26
Branch analysis from position: 24
Branch analysis from position: 3
filename:       /in/X55CA
function name:  (null)
number of ops:  68
compiled vars:  !0 = $vbulletin, !1 = $ncun_lasthook, !2 = $ncun_is_admincp, !3 = $oldname, !4 = $newname, !5 = $usernote_message, !6 = $poster, !7 = $db, !8 = $vbphrase
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   BOOL_NOT                                         ~9      !0
          1      > JMPZ                                                     ~9, ->3
    3     2    >   BIND_GLOBAL                                              !0, 'vbulletin'
    6     3    >   ASSIGN                                                   !1, 'userdata_postsave'
   11     4        INIT_FCALL                                               'file_exists'
          5        FETCH_CONSTANT                                   ~11     'DIR'
          6        CONCAT                                           ~12     ~11, '%2Fincludes%2Fncun_hooks%2F'
          7        CONCAT                                           ~13     ~12, !1
          8        CONCAT                                           ~14     ~13, '.php'
          9        SEND_VAL                                                 ~14
         10        DO_ICALL                                         $15     
         11      > JMPZ                                                     $15, ->18
   12    12    >   FETCH_CONSTANT                                   ~16     'DIR'
         13        CONCAT                                           ~17     ~16, '%2Fincludes%2Fncun_hooks%2F'
         14        CONCAT                                           ~18     ~17, !1
         15        CONCAT                                           ~19     ~18, '.php'
         16        INCLUDE_OR_EVAL                                  $20     ~19, INCLUDE
         17      > RETURN                                                   $20
   15    18    > > SWITCH_STRING                                            !1, [ 'useradmin_update_save':->24, 'userdata_postsave':->26, ], ->66
   16    19    >   IS_EQUAL                                                 !1, 'useradmin_update_save'
         20      > JMPNZ                                                    ~21, ->24
   19    21    >   IS_EQUAL                                                 !1, 'userdata_postsave'
         22      > JMPNZ                                                    ~21, ->26
         23    > > JMP                                                      ->66
   17    24    >   ASSIGN                                                   !2, <true>
   18    25      > JMP                                                      ->66
   20    26    >   BIND_GLOBAL                                              !2, 'ncun_is_admincp'
   21    27      > JMPZ                                                     <true>, ->65
   24    28    >   ASSIGN                                                   !3, 'sdlkfcunvls'
   25    29        ASSIGN                                                   !4, 'dfljkndfl'
   29    30        ASSIGN                                                   !5, 'dfbd'
   31    31        ISSET_ISEMPTY_CV                                 ~26     !2
         32        BOOL_NOT                                         ~27     ~26
         33      > JMPZ                                                     ~27, ->38
   32    34    >   FETCH_OBJ_R                                      ~28     !0, 'userinfo'
         35        FETCH_DIM_R                                      ~29     ~28, 'userid'
         36        ASSIGN                                                   !6, ~29
         37      > JMP                                                      ->41
   35    38    >   FETCH_OBJ_R                                      ~31     !0, 'options'
         39        FETCH_DIM_R                                      ~32     ~31, 'ncun_default_poster'
         40        ASSIGN                                                   !6, ~32
   37    41    >   BOOL_NOT                                         ~34     !6
         42      > JMPZ                                                     ~34, ->44
         43    >   ASSIGN                                                   !6, 1
   40    44    >   INIT_METHOD_CALL                                         !7, 'query_write'
   41    45        FETCH_CONSTANT                                   ~36     'TABLE_PREFIX'
         46        CONCAT                                           ~37     '%0A%09%09%09%09%09%09INSERT+INTO+', ~36
         47        CONCAT                                           ~38     ~37, 'usernote+%28message%2C+dateline%2C+userid%2C+posterid%2C+title%2C+allowsmilies%29%0A%09%09%09%09%09%09VALUES+%28%27'
   42    48        INIT_METHOD_CALL                                         !7, 'escape_string'
         49        SEND_VAR_EX                                              !5
         50        DO_FCALL                                      0  $39     
         51        CONCAT                                           ~40     ~38, $39
         52        CONCAT                                           ~41     ~40, '%27%2C+'
         53        FETCH_CONSTANT                                   ~42     'TIMENOW'
         54        CONCAT                                           ~43     ~41, ~42
         55        CONCAT                                           ~44     ~43, '%2C+'
         56        CONCAT                                           ~45     ~44, 'sdfvs'
         57        CONCAT                                           ~46     ~45, '%2C+'
         58        CONCAT                                           ~47     ~46, !6
         59        CONCAT                                           ~48     ~47, '%2C+%27'
         60        FETCH_DIM_R                                      ~49     !8, 'ncun_usernote_title'
         61        CONCAT                                           ~50     ~48, ~49
         62        CONCAT                                           ~51     ~50, '%27%2C+1%29%0A%09%09%09%09%09'
         63        SEND_VAL_EX                                              ~51
         64        DO_FCALL                                      0          
   45    65    > > JMP                                                      ->66
   48    66    >   UNSET_CV                                                 !1
         67      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.13 ms | 1404 KiB | 15 Q