3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
178.34 ms | 1749 KiB | 14 Q