3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr1 = array(array("key" => "delete", "label" => "hi Delete"),array("key" => "edit", "label" => "hi Edit"), array("key" => "update", "label" => "hi update")); $diff = array_diff_assoc( array("key" => "delete", "label" => "hi Delete"),$arr1); foreach ($arr1 as $key => $value) { if ($value["key"] == 'delete' && $value["label"] == 'hi Delete' ) { unset($arr1[$key]); } } print_r($arr1); ?>
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 18
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 46) Position 1 = 12, Position 2 = 15
Branch analysis from position: 12
2 jumps found. (Code = 43) Position 1 = 16, Position 2 = 17
Branch analysis from position: 16
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 17
Branch analysis from position: 15
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/lIclm
function name:  (null)
number of ops:  23
compiled vars:  !0 = $arr1, !1 = $diff, !2 = $value, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        INIT_FCALL                                               'array_diff_assoc'
          2        SEND_VAL                                                 <array>
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                         $5      
          5        ASSIGN                                                   !1, $5
    4     6      > FE_RESET_R                                       $7      !0, ->18
          7    > > FE_FETCH_R                                       ~8      $7, !2, ->18
          8    >   ASSIGN                                                   !3, ~8
    5     9        FETCH_DIM_R                                      ~10     !2, 'key'
         10        IS_EQUAL                                         ~11     ~10, 'delete'
         11      > JMPZ_EX                                          ~11     ~11, ->15
         12    >   FETCH_DIM_R                                      ~12     !2, 'label'
         13        IS_EQUAL                                         ~13     ~12, 'hi+Delete'
         14        BOOL                                             ~11     ~13
         15    > > JMPZ                                                     ~11, ->17
    7    16    >   UNSET_DIM                                                !0, !3
    4    17    > > JMP                                                      ->7
         18    >   FE_FREE                                                  $7
   11    19        INIT_FCALL                                               'print_r'
         20        SEND_VAR                                                 !0
         21        DO_ICALL                                                 
   12    22      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
189.32 ms | 1395 KiB | 17 Q