3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.4 ms | 955 KiB | 15 Q