3v4l.org

run code in 300+ PHP versions simultaneously
<?php $COOKIE['user']=array(0x500000000,0x9b5c3d2b64b8f74e56edec71462bd97a); $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[1] = md5($input[1]); foreach ($users as $user) { $user = explode(":", $user); if ($input === $user) { echo 'Found!'; $uid = $input[0] + 0; $valid_user = true; } } 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 = 27
Branch analysis from position: 13
2 jumps found. (Code = 78) Position 1 = 14, Position 2 = 27
Branch analysis from position: 14
2 jumps found. (Code = 43) Position 1 = 21, Position 2 = 26
Branch analysis from position: 21
1 jumps found. (Code = 42) Position 1 = 13
Branch analysis from position: 13
Branch analysis from position: 26
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 30, Position 2 = 31
Branch analysis from position: 30
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 31
2 jumps found. (Code = 43) Position 1 = 33, Position 2 = 36
Branch analysis from position: 33
1 jumps found. (Code = 42) Position 1 = 37
Branch analysis from position: 37
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 27
filename:       /in/WtDVK
function name:  (null)
number of ops:  38
compiled vars:  !0 = $COOKIE, !1 = $users, !2 = $valid_user, !3 = $input, !4 = $user, !5 = $uid
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                               !0, 'user'
          1        OP_DATA                                                  <array>
    3     2        ASSIGN                                                   !1, <array>
   17     3        ASSIGN                                                   !2, <false>
   19     4        FETCH_DIM_R                                      ~9      !0, 'user'
          5        ASSIGN                                                   !3, ~9
   20     6        INIT_FCALL                                               'md5'
          7        FETCH_DIM_R                                      ~12     !3, 1
          8        SEND_VAL                                                 ~12
          9        DO_ICALL                                         $13     
         10        ASSIGN_DIM                                               !3, 1
         11        OP_DATA                                                  $13
   22    12      > FE_RESET_R                                       $14     !1, ->27
         13    > > FE_FETCH_R                                               $14, !4, ->27
   24    14    >   INIT_FCALL                                               'explode'
         15        SEND_VAL                                                 '%3A'
         16        SEND_VAR                                                 !4
         17        DO_ICALL                                         $15     
         18        ASSIGN                                                   !4, $15
   25    19        IS_IDENTICAL                                             !3, !4
         20      > JMPZ                                                     ~17, ->26
   26    21    >   ECHO                                                     'Found%21'
   27    22        FETCH_DIM_R                                      ~18     !3, 0
         23        ADD                                              ~19     ~18, 0
         24        ASSIGN                                                   !5, ~19
   28    25        ASSIGN                                                   !2, <true>
   22    26    > > JMP                                                      ->13
         27    >   FE_FREE                                                  $14
   32    28        BOOL_NOT                                         ~22     !2
         29      > JMPZ                                                     ~22, ->31
   33    30    > > EXIT                                                     'not+a+valid+user%0A'
   36    31    >   IS_EQUAL                                                 !5, 0
         32      > JMPZ                                                     ~23, ->36
   38    33    >   ECHO                                                     'Hello+Admin+How+can+I+serve+you+today%3F%0A'
   39    34        ECHO                                                     'SECRETS+....%0A'
         35      > JMP                                                      ->37
   42    36    >   ECHO                                                     'Welcome+back+user%0A'
   43    37    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
188.11 ms | 1400 KiB | 17 Q