3v4l.org

run code in 300+ PHP versions simultaneously
<?php $userdb = [ [ '100', 'Sandra', 'urlof100' ], [ '5465', 'Stefanie', 'urlof5465' ], [ '40489', 'Michael', 'urlof40489' ] ]; foreach($userdb as $k => $v) { if (is_array($v) && in_array('Sandra',$v)) { echo "Yes, \"Sandra\" in array at row $k\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 46) Position 1 = 6, Position 2 = 11
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 12, Position 2 = 16
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 16
Branch analysis from position: 11
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/562Fj
function name:  (null)
number of ops:  19
compiled vars:  !0 = $userdb, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   20     1      > FE_RESET_R                                       $4      !0, ->17
          2    > > FE_FETCH_R                                       ~5      $4, !1, ->17
          3    >   ASSIGN                                                   !2, ~5
   21     4        TYPE_CHECK                                  128  ~7      !1
          5      > JMPZ_EX                                          ~7      ~7, ->11
          6    >   INIT_FCALL                                               'in_array'
          7        SEND_VAL                                                 'Sandra'
          8        SEND_VAR                                                 !1
          9        DO_ICALL                                         $8      
         10        BOOL                                             ~7      $8
         11    > > JMPZ                                                     ~7, ->16
   22    12    >   ROPE_INIT                                     3  ~10     'Yes%2C+%22Sandra%22+in+array+at+row+'
         13        ROPE_ADD                                      1  ~10     ~10, !2
         14        ROPE_END                                      2  ~9      ~10, '%0A'
         15        ECHO                                                     ~9
   20    16    > > JMP                                                      ->2
         17    >   FE_FREE                                                  $4
   24    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.04 ms | 1426 KiB | 14 Q