3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.19 ms | 1010 KiB | 14 Q