3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.99 ms | 1386 KiB | 15 Q