3v4l.org

run code in 300+ PHP versions simultaneously
<?php $users = [ 0 => [ 'username' => 'seb', 'password' => password_hash('sebber', PASSWORD_BCRYPT), ], 1 => [ 'username' => 'sebastian', 'password' => password_hash('pancake', PASSWORD_BCRYPT), ], 2 => [ 'username' => 'nicklas', 'password' => password_hash('sunglass', PASSWORD_BCRYPT), ], ]; $password = password_hash('pancake', PASSWORD_BCRYPT); foreach ($users as $user) { if ($user['password'] == $password) { echo "you made it"; } else { echo "fu"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 28, Position 2 = 36
Branch analysis from position: 28
2 jumps found. (Code = 78) Position 1 = 29, Position 2 = 36
Branch analysis from position: 29
2 jumps found. (Code = 43) Position 1 = 32, Position 2 = 34
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 35
Branch analysis from position: 35
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 34
1 jumps found. (Code = 42) Position 1 = 28
Branch analysis from position: 28
Branch analysis from position: 36
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 36
filename:       /in/sfB6T
function name:  (null)
number of ops:  38
compiled vars:  !0 = $users, !1 = $password, !2 = $user
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   INIT_ARRAY                                       ~3      'seb', 'username'
    6     1        INIT_FCALL                                               'password_hash'
          2        SEND_VAL                                                 'sebber'
          3        SEND_VAL                                                 '2y'
          4        DO_ICALL                                         $4      
          5        ADD_ARRAY_ELEMENT                                ~3      $4, 'password'
          6        INIT_ARRAY                                       ~5      ~3, 0
    9     7        INIT_ARRAY                                       ~6      'sebastian', 'username'
   10     8        INIT_FCALL                                               'password_hash'
          9        SEND_VAL                                                 'pancake'
         10        SEND_VAL                                                 '2y'
         11        DO_ICALL                                         $7      
         12        ADD_ARRAY_ELEMENT                                ~6      $7, 'password'
         13        ADD_ARRAY_ELEMENT                                ~5      ~6, 1
   14    14        INIT_ARRAY                                       ~8      'nicklas', 'username'
   15    15        INIT_FCALL                                               'password_hash'
         16        SEND_VAL                                                 'sunglass'
         17        SEND_VAL                                                 '2y'
         18        DO_ICALL                                         $9      
         19        ADD_ARRAY_ELEMENT                                ~8      $9, 'password'
         20        ADD_ARRAY_ELEMENT                                ~5      ~8, 2
    3    21        ASSIGN                                                   !0, ~5
   20    22        INIT_FCALL                                               'password_hash'
         23        SEND_VAL                                                 'pancake'
         24        SEND_VAL                                                 '2y'
         25        DO_ICALL                                         $11     
         26        ASSIGN                                                   !1, $11
   22    27      > FE_RESET_R                                       $13     !0, ->36
         28    > > FE_FETCH_R                                               $13, !2, ->36
   23    29    >   FETCH_DIM_R                                      ~14     !2, 'password'
         30        IS_EQUAL                                                 !1, ~14
         31      > JMPZ                                                     ~15, ->34
   24    32    >   ECHO                                                     'you+made+it'
         33      > JMP                                                      ->35
   26    34    >   ECHO                                                     'fu'
   22    35    > > JMP                                                      ->28
         36    >   FE_FREE                                                  $13
   28    37      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.81 ms | 1400 KiB | 15 Q