3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array = new \SplFixedArray(10); $array[1] = 1; foreach($array as $k => $elem){ var_dump($elem, $array[$k]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 15
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/GBc56
function name:  (null)
number of ops:  17
compiled vars:  !0 = $array, !1 = $elem, !2 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $3      'SplFixedArray'
          1        SEND_VAL_EX                                              10
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    4     4        ASSIGN_DIM                                               !0, 1
          5        OP_DATA                                                  1
    6     6      > FE_RESET_R                                       $7      !0, ->15
          7    > > FE_FETCH_R                                       ~8      $7, !1, ->15
          8    >   ASSIGN                                                   !2, ~8
    7     9        INIT_FCALL                                               'var_dump'
         10        SEND_VAR                                                 !1
         11        FETCH_DIM_R                                      ~10     !0, !2
         12        SEND_VAL                                                 ~10
         13        DO_ICALL                                                 
    6    14      > JMP                                                      ->7
         15    >   FE_FREE                                                  $7
    8    16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
139 ms | 999 KiB | 14 Q