3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.55 ms | 1395 KiB | 15 Q