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("banglades",$input_arr[$i])) if(in_array("india",$input_arr[$i])) echo $input_arr[$i]; }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 18
Branch analysis from position: 18
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 3
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
2 jumps found. (Code = 43) Position 1 = 15, Position 2 = 17
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 21, Position 2 = 3
Branch analysis from position: 21
Branch analysis from position: 3
Branch analysis from position: 17
Branch analysis from position: 17
filename:       /in/fXQRJ
function name:  (null)
number of ops:  22
compiled vars:  !0 = $input_arr, !1 = $i
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
   11     1        ASSIGN                                                   !1, 0
          2      > JMP                                                      ->18
   13     3    >   INIT_FCALL                                               'in_array'
          4        SEND_VAL                                                 'banglades'
          5        FETCH_DIM_R                                      ~4      !0, !1
          6        SEND_VAL                                                 ~4
          7        DO_ICALL                                         $5      
          8      > JMPZ                                                     $5, ->17
   14     9    >   INIT_FCALL                                               'in_array'
         10        SEND_VAL                                                 'india'
         11        FETCH_DIM_R                                      ~6      !0, !1
         12        SEND_VAL                                                 ~6
         13        DO_ICALL                                         $7      
         14      > JMPZ                                                     $7, ->17
   15    15    >   FETCH_DIM_R                                      ~8      !0, !1
         16        ECHO                                                     ~8
   11    17    >   PRE_INC                                                  !1
         18    >   COUNT                                            ~10     !0
         19        IS_SMALLER                                               !1, ~10
         20      > JMPNZ                                                    ~11, ->3
   16    21    > > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
162.66 ms | 1387 KiB | 15 Q