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[(string)$key]); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 18
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 18
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 18
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 18
filename:       /in/FJhIK
function name:  (null)
number of ops:  20
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, ->18
          8    > > FE_FETCH_R                                       ~10     $9, !1, ->18
          9    >   ASSIGN                                                   !2, ~10
    7    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !2
         12        SEND_VAR                                                 !1
         13        CAST                                          6  ~12     !2
         14        FETCH_DIM_R                                      ~13     !0, ~12
         15        SEND_VAL                                                 ~13
         16        DO_ICALL                                                 
    6    17      > JMP                                                      ->8
         18    >   FE_FREE                                                  $9
    8    19      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.11 ms | 1386 KiB | 15 Q