3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = Array ( '0' => Array ( 'uid' => Array ( '0' => Array ( '10770' ), '1' => Array ( '523465' ), '2' => Array ( '4042389' ) ), 'name' => 'Sandra Shush', 'url' => 'urlof100' ), '1' => Array ( 'uid' => Array ( '0' => Array ( '102320' ), '1' => Array ( '532465' ), '2' => Array ( '40432389' ) ), 'name' => 'Stefanie Mcmohn', 'pic_square' => 'urlof100' )); $key = '102320'; foreach($userdb as $user){ foreach($user['uid'] as $id){ if($id[0] == $key) { echo "Match found--->".$key; } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 13
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 13
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 10, Position 2 = 12
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 12
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 13
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/ppcLA
function name:  (null)
number of ops:  17
compiled vars:  !0 = $userdb, !1 = $key, !2 = $user, !3 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   40     1        ASSIGN                                                   !1, '102320'
   41     2      > FE_RESET_R                                       $6      !0, ->15
          3    > > FE_FETCH_R                                               $6, !2, ->15
   42     4    >   FETCH_DIM_R                                      ~7      !2, 'uid'
          5      > FE_RESET_R                                       $8      ~7, ->13
          6    > > FE_FETCH_R                                               $8, !3, ->13
   43     7    >   FETCH_DIM_R                                      ~9      !3, 0
          8        IS_EQUAL                                                 !1, ~9
          9      > JMPZ                                                     ~10, ->12
   45    10    >   CONCAT                                           ~11     'Match+found---%3E', !1
         11        ECHO                                                     ~11
   42    12    > > JMP                                                      ->6
         13    >   FE_FREE                                                  $8
   41    14      > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   50    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
262.09 ms | 1010 KiB | 13 Q