3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->foo = 'bar'; $obj->bar = array('a', 'b'); $a = new ArrayObject($obj); foreach ($a as $prop) { var_dump($prop); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 17
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 17
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/2JB0u
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj, !1 = $a, !2 = $prop
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   NEW                                              $3      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
    3     3        ASSIGN_OBJ                                               !0, 'foo'
          4        OP_DATA                                                  'bar'
    4     5        ASSIGN_OBJ                                               !0, 'bar'
          6        OP_DATA                                                  <array>
    6     7        NEW                                              $8      'ArrayObject'
          8        SEND_VAR_EX                                              !0
          9        DO_FCALL                                      0          
         10        ASSIGN                                                   !1, $8
    8    11      > FE_RESET_R                                       $11     !1, ->17
         12    > > FE_FETCH_R                                               $11, !2, ->17
    9    13    >   INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !2
         15        DO_ICALL                                                 
    8    16      > JMP                                                      ->12
         17    >   FE_FREE                                                  $11
   10    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.58 ms | 1386 KiB | 15 Q