3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = array( "0:9b5c3d2b64b8f74e56edec71462bd97a" , "1:4eb5fb1501102508a86971773849d266", "2:facabd94d57fc9f1e655ef9ce891e86e", "3:ce3924f011fe323df3a6a95222b0c909", "4:7f6618422e6a7ca2e939bd83abde402c", "5:06e2b745f3124f7d670f78eabaa94809", "6:8e39a6e40900bb0824a8e150c0d0d59f", "7:d035e1a80bbb377ce1edce42728849f2", "8:0927d64a71a9d0078c274fc5f4f10821", "9:e2e23d64a642ee82c7a270c6c76df142", "10:70298593dd7ada576aff61b6750b9118" ); $valid_user = false; //$input = $_COOKIE['user']; $input = array(0 => '5', 1 => 'hund'/*, '0x0' => '0', '0x1' => '9b5c3d2b64b8f74e56edec71462bd97a'*/); $input[1] = md5($input[1]); var_dump($input); foreach ($users as $user) { $user = explode(":", $user); var_dump($user); if ($input === $user) { $uid = $input[0] + 0; $valid_user = true; } break; } if (!$valid_user) { die("not a valid user\n"); } if ($uid == 0) { echo "Hello Admin How can I serve you today?\n"; echo "SECRETS ....\n"; } else { echo "Welcome back user\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 13, Position 2 = 30
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 30
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 24, Position 2 = 28
Branch analysis from position: 24
1 jumps found. (Code = 42) Position 1 = 30
Branch analysis from position: 30
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 34
Branch analysis from position: 33
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 34
2 jumps found. (Code = 43) Position 1 = 36, Position 2 = 39
Branch analysis from position: 36
1 jumps found. (Code = 42) Position 1 = 40
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 39
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 28
Branch analysis from position: 30
Branch analysis from position: 30
filename:       /in/eCHvV
function name:  (null)
number of ops:  41
compiled vars:  !0 = $users, !1 = $valid_user, !2 = $input, !3 = $user, !4 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   17     1        ASSIGN                                                   !1, <false>
   20     2        ASSIGN                                                   !2, <array>
   21     3        INIT_FCALL                                               'md5'
          4        FETCH_DIM_R                                      ~9      !2, 1
          5        SEND_VAL                                                 ~9
          6        DO_ICALL                                         $10     
          7        ASSIGN_DIM                                               !2, 1
          8        OP_DATA                                                  $10
   23     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !2
         11        DO_ICALL                                                 
   25    12      > FE_RESET_R                                       $12     !0, ->30
         13    > > FE_FETCH_R                                               $12, !3, ->30
   27    14    >   INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%3A'
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                         $13     
         18        ASSIGN                                                   !3, $13
   28    19        INIT_FCALL                                               'var_dump'
         20        SEND_VAR                                                 !3
         21        DO_ICALL                                                 
   29    22        IS_IDENTICAL                                             !2, !3
         23      > JMPZ                                                     ~16, ->28
   30    24    >   FETCH_DIM_R                                      ~17     !2, 0
         25        ADD                                              ~18     ~17, 0
         26        ASSIGN                                                   !4, ~18
   31    27        ASSIGN                                                   !1, <true>
   33    28    > > JMP                                                      ->30
   25    29*       JMP                                                      ->13
         30    >   FE_FREE                                                  $12
   36    31        BOOL_NOT                                         ~21     !1
         32      > JMPZ                                                     ~21, ->34
   37    33    > > EXIT                                                     'not+a+valid+user%0A'
   40    34    >   IS_EQUAL                                                 !4, 0
         35      > JMPZ                                                     ~22, ->39
   42    36    >   ECHO                                                     'Hello+Admin+How+can+I+serve+you+today%3F%0A'
   43    37        ECHO                                                     'SECRETS+....%0A'
         38      > JMP                                                      ->40
   46    39    >   ECHO                                                     'Welcome+back+user%0A'
   47    40    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
177.1 ms | 1400 KiB | 19 Q