3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.8 ms | 1395 KiB | 15 Q