3v4l.org

run code in 300+ PHP versions simultaneously
<?php $item = ( Array ( Array( 'group_roles_name' => 'CREATOR' ) ) ); $value = "CREATOR"; if(is_array($item) && !array_search($value,$item)){ // not equal, break de loop $itemFound = false; echo "not found"; } else if(is_array($item) && array_search($value,$item)){ echo "found"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 46) Position 1 = 4, Position 2 = 10
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 23
Branch analysis from position: 23
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
2 jumps found. (Code = 46) Position 1 = 16, Position 2 = 21
Branch analysis from position: 16
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 23
Branch analysis from position: 22
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 23
Branch analysis from position: 21
Branch analysis from position: 10
filename:       /in/BrBTu
function name:  (null)
number of ops:  24
compiled vars:  !0 = $item, !1 = $value, !2 = $itemFound
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   14     1        ASSIGN                                                   !1, 'CREATOR'
   16     2        TYPE_CHECK                                  128  ~5      !0
          3      > JMPZ_EX                                          ~5      ~5, ->10
          4    >   INIT_FCALL                                               'array_search'
          5        SEND_VAR                                                 !1
          6        SEND_VAR                                                 !0
          7        DO_ICALL                                         $6      
          8        BOOL_NOT                                         ~7      $6
          9        BOOL                                             ~5      ~7
         10    > > JMPZ                                                     ~5, ->14
   17    11    >   ASSIGN                                                   !2, <false>
   18    12        ECHO                                                     'not+found'
         13      > JMP                                                      ->23
   20    14    >   TYPE_CHECK                                  128  ~9      !0
         15      > JMPZ_EX                                          ~9      ~9, ->21
         16    >   INIT_FCALL                                               'array_search'
         17        SEND_VAR                                                 !1
         18        SEND_VAR                                                 !0
         19        DO_ICALL                                         $10     
         20        BOOL                                             ~9      $10
         21    > > JMPZ                                                     ~9, ->23
   21    22    >   ECHO                                                     'found'
   22    23    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
165.87 ms | 1395 KiB | 15 Q