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(5, 'hund'); $input[1] = md5($input[1]); foreach ($users as $user) { $user = explode(":", $user); if ($input === $user) { $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 = 10, Position 2 = 23
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 23
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 18, Position 2 = 22
Branch analysis from position: 18
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 22
Branch analysis from position: 23
2 jumps found. (Code = 43) Position 1 = 26, Position 2 = 27
Branch analysis from position: 26
1 jumps found. (Code = 79) Position 1 = -2
Branch analysis from position: 27
2 jumps found. (Code = 43) Position 1 = 29, Position 2 = 32
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 32
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
filename:       /in/nn42E
function name:  (null)
number of ops:  34
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      > FE_RESET_R                                       $11     !0, ->23
         10    > > FE_FETCH_R                                               $11, !3, ->23
   25    11    >   INIT_FCALL                                               'explode'
         12        SEND_VAL                                                 '%3A'
         13        SEND_VAR                                                 !3
         14        DO_ICALL                                         $12     
         15        ASSIGN                                                   !3, $12
   26    16        IS_IDENTICAL                                             !2, !3
         17      > JMPZ                                                     ~14, ->22
   27    18    >   FETCH_DIM_R                                      ~15     !2, 0
         19        ADD                                              ~16     ~15, 0
         20        ASSIGN                                                   !4, ~16
   28    21        ASSIGN                                                   !1, <true>
   23    22    > > JMP                                                      ->10
         23    >   FE_FREE                                                  $11
   32    24        BOOL_NOT                                         ~19     !1
         25      > JMPZ                                                     ~19, ->27
   33    26    > > EXIT                                                     'not+a+valid+user%0A'
   36    27    >   IS_EQUAL                                                 !4, 0
         28      > JMPZ                                                     ~20, ->32
   38    29    >   ECHO                                                     'Hello+Admin+How+can+I+serve+you+today%3F%0A'
   39    30        ECHO                                                     'SECRETS+....%0A'
         31      > JMP                                                      ->33
   42    32    >   ECHO                                                     'Welcome+back+user%0A'
   43    33    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
167.28 ms | 1400 KiB | 17 Q