3v4l.org

run code in 300+ PHP versions simultaneously
<?php $communityIds = array(array('community_id' => '123', 'community_org' => 'whatevs'), array( 'community_id' => '345', 'community_org' => 'and such'), array('community_id' =>'789', 'community_org' => 'and how')); $communities = array(); $communities[3456] = 1; foreach($communityIds as $communityId) { unset($communities[$communityId['community_id']]); } print_r($communityIds); print_r($communities);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 9
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 9
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 9
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 9
filename:       /in/fnDhq
function name:  (null)
number of ops:  17
compiled vars:  !0 = $communityIds, !1 = $communities, !2 = $communityId
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    5     2        ASSIGN_DIM                                               !1, 3456
          3        OP_DATA                                                  1
    7     4      > FE_RESET_R                                       $6      !0, ->9
          5    > > FE_FETCH_R                                               $6, !2, ->9
    8     6    >   FETCH_DIM_R                                      ~7      !2, 'community_id'
          7        UNSET_DIM                                                !1, ~7
    7     8      > JMP                                                      ->5
          9    >   FE_FREE                                                  $6
   11    10        INIT_FCALL                                               'print_r'
         11        SEND_VAR                                                 !0
         12        DO_ICALL                                                 
   12    13        INIT_FCALL                                               'print_r'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.9 ms | 1399 KiB | 15 Q