3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
148.4 ms | 1395 KiB | 17 Q