3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.47 ms | 1755 KiB | 13 Q