3v4l.org

run code in 300+ PHP versions simultaneously
<?php $i = new stdClass(); $i->{1234} = "test"; $i = (array) $i; foreach ($i as $key => $value) { var_dump($key, $value, $i[$key]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 17
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 17
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 17
filename:       /in/q2jT4
function name:  (null)
number of ops:  19
compiled vars:  !0 = $i, !1 = $value, !2 = $key
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, '1234'
          4        OP_DATA                                                  'test'
    4     5        CAST                                          7  ~7      !0
          6        ASSIGN                                                   !0, ~7
    6     7      > FE_RESET_R                                       $9      !0, ->17
          8    > > FE_FETCH_R                                       ~10     $9, !1, ->17
          9    >   ASSIGN                                                   !2, ~10
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        FETCH_DIM_R                                      ~12     !0, !2
         14        SEND_VAL                                                 ~12
         15        DO_ICALL                                                 
    6    16      > JMP                                                      ->8
         17    >   FE_FREE                                                  $9
    8    18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.7 ms | 1386 KiB | 15 Q