3v4l.org

run code in 300+ PHP versions simultaneously
<?php $tag=[25, 26]; $tagarray[]=[25,29,30,44,26]; $res = []; foreach($tagarray[0] as $val){ if (!in_array($val,$tag)) $res[] = $val; } print_r($res);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 16
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 16
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 15
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 15
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 16
filename:       /in/Eaist
function name:  (null)
number of ops:  21
compiled vars:  !0 = $tag, !1 = $tagarray, !2 = $res, !3 = $val
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    3     1        ASSIGN_DIM                                               !1
          2        OP_DATA                                                  <array>
    5     3        ASSIGN                                                   !2, <array>
    6     4        FETCH_DIM_R                                      ~7      !1, 0
          5      > FE_RESET_R                                       $8      ~7, ->16
          6    > > FE_FETCH_R                                               $8, !3, ->16
    7     7    >   INIT_FCALL                                               'in_array'
          8        SEND_VAR                                                 !3
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                         $9      
         11        BOOL_NOT                                         ~10     $9
         12      > JMPZ                                                     ~10, ->15
         13    >   ASSIGN_DIM                                               !2
         14        OP_DATA                                                  !3
    6    15    > > JMP                                                      ->6
         16    >   FE_FREE                                                  $8
    9    17        INIT_FCALL                                               'print_r'
         18        SEND_VAR                                                 !2
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
145.52 ms | 1006 KiB | 15 Q