3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.71 ms | 1395 KiB | 15 Q