3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.73 ms | 1395 KiB | 15 Q