3v4l.org

run code in 300+ PHP versions simultaneously
<?php $rss = (object) [ 'items' => [ ['foo' => 'bar1'], ['foo' => 'bar2'], ['foo' => 'bar3'], ], ]; $feedId = 42; foreach ($rss->items as $key => $item) { $rss->items[$key]['feed_id'] = $feedId; } var_export($rss);
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 5, Position 2 = 12
Branch analysis from position: 5
2 jumps found. (Code = 78) Position 1 = 6, Position 2 = 12
Branch analysis from position: 6
1 jumps found. (Code = 42) Position 1 = 5
Branch analysis from position: 5
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/uXfnL
function name:  (null)
number of ops:  17
compiled vars:  !0 = $rss, !1 = $feedId, !2 = $item, !3 = $key
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   CAST                                          8  ~4      <array>
    3     1        ASSIGN                                                   !0, ~4
   11     2        ASSIGN                                                   !1, 42
   12     3        FETCH_OBJ_R                                      ~7      !0, 'items'
          4      > FE_RESET_R                                       $8      ~7, ->12
          5    > > FE_FETCH_R                                       ~9      $8, !2, ->12
          6    >   ASSIGN                                                   !3, ~9
   13     7        FETCH_OBJ_W                                      $11     !0, 'items'
          8        FETCH_DIM_W                                      $12     $11, !3
          9        ASSIGN_DIM                                               $12, 'feed_id'
         10        OP_DATA                                                  !1
   12    11      > JMP                                                      ->5
         12    >   FE_FREE                                                  $8
   15    13        INIT_FCALL                                               'var_export'
         14        SEND_VAR                                                 !0
         15        DO_ICALL                                                 
         16      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.57 ms | 1004 KiB | 14 Q