3v4l.org

run code in 300+ PHP versions simultaneously
<?php $s = array("z","z","E","z","z","E","E","E","E","E"); $b = array("a","a","a","z","a","E","E","E","a","E"); foreach($s as $k => $v) { if($b[$k] === $s[$k]) { echo $k . ' is the index where keys and values exactly match with value as ' . $b[$k]; echo "\n"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 15
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 15
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 9, Position 2 = 14
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 14
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/eX0r4
function name:  (null)
number of ops:  17
compiled vars:  !0 = $s, !1 = $b, !2 = $v, !3 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN                                                   !1, <array>
    6     2      > FE_RESET_R                                       $6      !0, ->15
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->15
          4    >   ASSIGN                                                   !3, ~7
    7     5        FETCH_DIM_R                                      ~9      !1, !3
          6        FETCH_DIM_R                                      ~10     !0, !3
          7        IS_IDENTICAL                                             ~9, ~10
          8      > JMPZ                                                     ~11, ->14
    8     9    >   CONCAT                                           ~12     !3, '+is+the+index+where+keys+and+values+exactly+match+with+value+as+'
         10        FETCH_DIM_R                                      ~13     !1, !3
         11        CONCAT                                           ~14     ~12, ~13
         12        ECHO                                                     ~14
    9    13        ECHO                                                     '%0A'
    6    14    > > JMP                                                      ->3
         15    >   FE_FREE                                                  $6
   11    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
170.16 ms | 1398 KiB | 13 Q