3v4l.org

run code in 300+ PHP versions simultaneously
<?php $input_arr= array( 0=>array(india0,srilanka1,pakistan0,banglades0), 1=>array(india1,srilanka1,pakistan1,bangladesh1), 2=>array(india2,srilanka2,pakistan2,bangladesh2), 3=>array(india3,srilanka3,pakistan3,bangladesh3), 4=>array(india4,srilanka4,pakistan4,bangladesh4), 5=>array(india5,srilanka5,pakistan5,bangladesh5), ); for($i=0;$i<sizeof($input_arr);$i++) { if(in_array("searchstring",$input_arr[$i])) if(in_array("searchstring2",$input_arr[$i])) echo $input_arr[$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 72
Branch analysis from position: 72
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 57
Branch analysis from position: 75
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 57
2 jumps found. (Code = 43) Position 1 = 63, Position 2 = 71
Branch analysis from position: 63
2 jumps found. (Code = 43) Position 1 = 69, Position 2 = 71
Branch analysis from position: 69
2 jumps found. (Code = 44) Position 1 = 75, Position 2 = 57
Branch analysis from position: 75
Branch analysis from position: 57
Branch analysis from position: 71
Branch analysis from position: 71
filename:       /in/Vcbnr
function name:  (null)
number of ops:  76
compiled vars:  !0 = $input_arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   FETCH_CONSTANT                                   ~2      'india0'
          1        INIT_ARRAY                                       ~3      ~2
          2        FETCH_CONSTANT                                   ~4      'srilanka1'
          3        ADD_ARRAY_ELEMENT                                ~3      ~4
          4        FETCH_CONSTANT                                   ~5      'pakistan0'
          5        ADD_ARRAY_ELEMENT                                ~3      ~5
          6        FETCH_CONSTANT                                   ~6      'banglades0'
          7        ADD_ARRAY_ELEMENT                                ~3      ~6
          8        INIT_ARRAY                                       ~7      ~3, 0
    4     9        FETCH_CONSTANT                                   ~8      'india1'
         10        INIT_ARRAY                                       ~9      ~8
         11        FETCH_CONSTANT                                   ~10     'srilanka1'
         12        ADD_ARRAY_ELEMENT                                ~9      ~10
         13        FETCH_CONSTANT                                   ~11     'pakistan1'
         14        ADD_ARRAY_ELEMENT                                ~9      ~11
         15        FETCH_CONSTANT                                   ~12     'bangladesh1'
         16        ADD_ARRAY_ELEMENT                                ~9      ~12
         17        ADD_ARRAY_ELEMENT                                ~7      ~9, 1
    5    18        FETCH_CONSTANT                                   ~13     'india2'
         19        INIT_ARRAY                                       ~14     ~13
         20        FETCH_CONSTANT                                   ~15     'srilanka2'
         21        ADD_ARRAY_ELEMENT                                ~14     ~15
         22        FETCH_CONSTANT                                   ~16     'pakistan2'
         23        ADD_ARRAY_ELEMENT                                ~14     ~16
         24        FETCH_CONSTANT                                   ~17     'bangladesh2'
         25        ADD_ARRAY_ELEMENT                                ~14     ~17
         26        ADD_ARRAY_ELEMENT                                ~7      ~14, 2
    6    27        FETCH_CONSTANT                                   ~18     'india3'
         28        INIT_ARRAY                                       ~19     ~18
         29        FETCH_CONSTANT                                   ~20     'srilanka3'
         30        ADD_ARRAY_ELEMENT                                ~19     ~20
         31        FETCH_CONSTANT                                   ~21     'pakistan3'
         32        ADD_ARRAY_ELEMENT                                ~19     ~21
         33        FETCH_CONSTANT                                   ~22     'bangladesh3'
         34        ADD_ARRAY_ELEMENT                                ~19     ~22
         35        ADD_ARRAY_ELEMENT                                ~7      ~19, 3
    7    36        FETCH_CONSTANT                                   ~23     'india4'
         37        INIT_ARRAY                                       ~24     ~23
         38        FETCH_CONSTANT                                   ~25     'srilanka4'
         39        ADD_ARRAY_ELEMENT                                ~24     ~25
         40        FETCH_CONSTANT                                   ~26     'pakistan4'
         41        ADD_ARRAY_ELEMENT                                ~24     ~26
         42        FETCH_CONSTANT                                   ~27     'bangladesh4'
         43        ADD_ARRAY_ELEMENT                                ~24     ~27
         44        ADD_ARRAY_ELEMENT                                ~7      ~24, 4
    8    45        FETCH_CONSTANT                                   ~28     'india5'
         46        INIT_ARRAY                                       ~29     ~28
         47        FETCH_CONSTANT                                   ~30     'srilanka5'
         48        ADD_ARRAY_ELEMENT                                ~29     ~30
         49        FETCH_CONSTANT                                   ~31     'pakistan5'
         50        ADD_ARRAY_ELEMENT                                ~29     ~31
         51        FETCH_CONSTANT                                   ~32     'bangladesh5'
         52        ADD_ARRAY_ELEMENT                                ~29     ~32
         53        ADD_ARRAY_ELEMENT                                ~7      ~29, 5
    2    54        ASSIGN                                                   !0, ~7
   11    55        ASSIGN                                                   !1, 0
         56      > JMP                                                      ->72
   13    57    >   INIT_FCALL                                               'in_array'
         58        SEND_VAL                                                 'searchstring'
         59        FETCH_DIM_R                                      ~35     !0, !1
         60        SEND_VAL                                                 ~35
         61        DO_ICALL                                         $36     
         62      > JMPZ                                                     $36, ->71
   14    63    >   INIT_FCALL                                               'in_array'
         64        SEND_VAL                                                 'searchstring2'
         65        FETCH_DIM_R                                      ~37     !0, !1
         66        SEND_VAL                                                 ~37
         67        DO_ICALL                                         $38     
         68      > JMPZ                                                     $38, ->71
   15    69    >   FETCH_DIM_R                                      ~39     !0, !1
         70        ECHO                                                     ~39
   11    71    >   PRE_INC                                                  !1
         72    >   COUNT                                            ~41     !0
         73        IS_SMALLER                                               !1, ~41
         74      > JMPNZ                                                    ~42, ->57
   16    75    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
159.72 ms | 945 KiB | 16 Q