3v4l.org

run code in 300+ PHP versions simultaneously
<?php $allgroups = array( grupp1, grupp2, grupp3, grupp4, grupp5 ); $membership = array( grupp1, grupp5 ); foreach($allgroups as $tmp) { if(empty( array_intersect( array($tmp),$membership) )){ var_dump('user inte medlem i {$tmp}\n'); } else { var_dump('user är medlem i {$tmp}\n'); } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 17, Position 2 = 33
Branch analysis from position: 17
2 jumps found. (Code = 78) Position 1 = 18, Position 2 = 33
Branch analysis from position: 18
2 jumps found. (Code = 43) Position 1 = 25, Position 2 = 29
Branch analysis from position: 25
1 jumps found. (Code = 42) Position 1 = 32
Branch analysis from position: 32
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 29
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/gaL6W
function name:  (null)
number of ops:  35
compiled vars:  !0 = $allgroups, !1 = $membership, !2 = $tmp
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~3      'grupp1'
          1        INIT_ARRAY                                       ~4      ~3
    4     2        FETCH_CONSTANT                                   ~5      'grupp2'
          3        ADD_ARRAY_ELEMENT                                ~4      ~5
    5     4        FETCH_CONSTANT                                   ~6      'grupp3'
          5        ADD_ARRAY_ELEMENT                                ~4      ~6
    6     6        FETCH_CONSTANT                                   ~7      'grupp4'
          7        ADD_ARRAY_ELEMENT                                ~4      ~7
    7     8        FETCH_CONSTANT                                   ~8      'grupp5'
          9        ADD_ARRAY_ELEMENT                                ~4      ~8
    3    10        ASSIGN                                                   !0, ~4
   10    11        FETCH_CONSTANT                                   ~10     'grupp1'
         12        INIT_ARRAY                                       ~11     ~10
   11    13        FETCH_CONSTANT                                   ~12     'grupp5'
         14        ADD_ARRAY_ELEMENT                                ~11     ~12
    9    15        ASSIGN                                                   !1, ~11
   13    16      > FE_RESET_R                                       $14     !0, ->33
         17    > > FE_FETCH_R                                               $14, !2, ->33
   15    18    >   INIT_FCALL                                               'array_intersect'
         19        INIT_ARRAY                                       ~15     !2
         20        SEND_VAL                                                 ~15
         21        SEND_VAR                                                 !1
         22        DO_ICALL                                         $16     
         23        BOOL_NOT                                         ~17     $16
         24      > JMPZ                                                     ~17, ->29
   16    25    >   INIT_FCALL                                               'var_dump'
         26        SEND_VAL                                                 'user+inte+medlem+i+%7B%24tmp%7D%5Cn'
         27        DO_ICALL                                                 
         28      > JMP                                                      ->32
   19    29    >   INIT_FCALL                                               'var_dump'
         30        SEND_VAL                                                 'user+%C3%A4r+medlem+i+%7B%24tmp%7D%5Cn'
         31        DO_ICALL                                                 
   13    32    > > JMP                                                      ->17
         33    >   FE_FREE                                                  $14
   21    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
166.03 ms | 1396 KiB | 17 Q