3v4l.org

run code in 300+ PHP versions simultaneously
<?php $a = array(); $a['10'] = 'abc'; $a['a'] = 'cde'; foreach ($a as $k=>$v) { var_dump($k); if ($k === '10') { echo "found"; } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 15
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 14
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
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/fXcm9
function name:  (null)
number of ops:  17
compiled vars:  !0 = $a, !1 = $v, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ASSIGN                                                   !0, <array>
    4     1        ASSIGN_DIM                                               !0, 10
          2        OP_DATA                                                  'abc'
    5     3        ASSIGN_DIM                                               !0, 'a'
          4        OP_DATA                                                  'cde'
    7     5      > FE_RESET_R                                       $6      !0, ->15
          6    > > FE_FETCH_R                                       ~7      $6, !1, ->15
          7    >   ASSIGN                                                   !2, ~7
    8     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !2
         10        DO_ICALL                                                 
    9    11        IS_IDENTICAL                                             !2, '10'
         12      > JMPZ                                                     ~10, ->14
   10    13    >   ECHO                                                     'found'
    7    14    > > JMP                                                      ->6
         15    >   FE_FREE                                                  $6
   12    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
174.19 ms | 1395 KiB | 15 Q