3v4l.org

run code in 300+ PHP versions simultaneously
<?php $baseTags = array( 'Bob' => 2, 'Theresa' => 3, 'The farm house' => 2, 'Bob at the farm house' => 1, ); foreach ($baseTags as $key => $count) { foreach ($baseTags as $k => $c) { if (false !== stripos($k,$key)) { unset($baseTags[$key]); } } } print_r($baseTags);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 2, Position 2 = 17
Branch analysis from position: 2
2 jumps found. (Code = 78) Position 1 = 3, Position 2 = 17
Branch analysis from position: 3
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 15
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 42) Position 1 = 2
Branch analysis from position: 2
Branch analysis from position: 15
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/ZWsqQ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $baseTags, !1 = $count, !2 = $key, !3 = $c, !4 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
   10     1      > FE_RESET_R                                       $6      !0, ->17
          2    > > FE_FETCH_R                                       ~7      $6, !1, ->17
          3    >   ASSIGN                                                   !2, ~7
   12     4      > FE_RESET_R                                       $9      !0, ->15
          5    > > FE_FETCH_R                                       ~10     $9, !3, ->15
          6    >   ASSIGN                                                   !4, ~10
   14     7        INIT_FCALL                                               'stripos'
          8        SEND_VAR                                                 !4
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                         $12     
         11        TYPE_CHECK                                  1018          $12
         12      > JMPZ                                                     ~13, ->14
   16    13    >   UNSET_DIM                                                !0, !2
   12    14    > > JMP                                                      ->5
         15    >   FE_FREE                                                  $9
   10    16      > JMP                                                      ->2
         17    >   FE_FREE                                                  $6
   21    18        INIT_FCALL                                               'print_r'
         19        SEND_VAR                                                 !0
         20        DO_ICALL                                                 
         21      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.86 ms | 1395 KiB | 17 Q