3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
144.04 ms | 1004 KiB | 14 Q