3v4l.org

run code in 500+ PHP versions simultaneously
<?php $a = array( '0'=> (Object) array( 'ID'=>1, 'name'=> 'firstname' ), '1'=> (Object) array( 'ID'=>2, 'name'=>'secondname' ), '2'=>(Object)array( 'ID'=>3, 'name'=>'thirdname' ) ); foreach($a as $object){ echo $object->name; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/sdT7E
function name:  (null)
number of ops:  14
compiled vars:  !0 = $a, !1 = $object
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   CAST                                              8  ~2      <array>
          1        INIT_ARRAY                                           ~3      ~2, 0
          2        CAST                                              8  ~4      <array>
          3        ADD_ARRAY_ELEMENT                                    ~3      ~4, 1
          4        CAST                                              8  ~5      <array>
          5        ADD_ARRAY_ELEMENT                                    ~3      ~5, 2
    3     6        ASSIGN                                                       !0, ~3
   17     7      > FE_RESET_R                                           $7      !0, ->12
          8    > > FE_FETCH_R                                                   $7, !1, ->12
   18     9    >   FETCH_OBJ_R                                          ~8      !1, 'name'
         10        ECHO                                                         ~8
   17    11      > JMP                                                          ->8
         12    >   FE_FREE                                                      $7
   19    13      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
222.23 ms | 2247 KiB | 13 Q