3v4l.org

run code in 300+ PHP versions simultaneously
<?php $jackpots = array( '2'=>'test 2', '2-5reel'=>'test 2 5 reel', ); $selected=array('2-5reel'); foreach($jackpots as $id => $name){ if(array_key_exists((string)$id,$selected)){ echo 'fuck'.$id.'<br />'; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 3, Position 2 = 12
Branch analysis from position: 3
2 jumps found. (Code = 78) Position 1 = 4, Position 2 = 12
Branch analysis from position: 4
2 jumps found. (Code = 43) Position 1 = 8, Position 2 = 11
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 3
Branch analysis from position: 3
Branch analysis from position: 11
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/skuaW
function name:  (null)
number of ops:  14
compiled vars:  !0 = $jackpots, !1 = $selected, !2 = $name, !3 = $id
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   ASSIGN                                                   !0, <array>
    8     1        ASSIGN                                                   !1, <array>
    9     2      > FE_RESET_R                                       $6      !0, ->12
          3    > > FE_FETCH_R                                       ~7      $6, !2, ->12
          4    >   ASSIGN                                                   !3, ~7
   10     5        CAST                                          6  ~9      !3
          6        ARRAY_KEY_EXISTS                                         ~9, !1
          7      > JMPZ                                                     ~10, ->11
   11     8    >   CONCAT                                           ~11     'fuck', !3
          9        CONCAT                                           ~12     ~11, '%3Cbr+%2F%3E'
         10        ECHO                                                     ~12
    9    11    > > JMP                                                      ->3
         12    >   FE_FREE                                                  $6
   14    13      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
277.72 ms | 1398 KiB | 14 Q