3v4l.org

run code in 300+ PHP versions simultaneously
<?php $obj = new stdClass; $obj->{'123'} = "foo"; echo $obj->{'123'},"\n"; var_dump($obj); $arr = (array) $obj; var_dump($arr); echo $arr['123'];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ft0tr
function name:  (null)
number of ops:  19
compiled vars:  !0 = $obj, !1 = $arr
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'stdClass'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $2
    4     3        ASSIGN_OBJ                                               !0, '123'
          4        OP_DATA                                                  'foo'
    5     5        FETCH_OBJ_R                                      ~6      !0, '123'
          6        ECHO                                                     ~6
          7        ECHO                                                     '%0A'
    6     8        INIT_FCALL                                               'var_dump'
          9        SEND_VAR                                                 !0
         10        DO_ICALL                                                 
    7    11        CAST                                          7  ~8      !0
         12        ASSIGN                                                   !1, ~8
    8    13        INIT_FCALL                                               'var_dump'
         14        SEND_VAR                                                 !1
         15        DO_ICALL                                                 
    9    16        FETCH_DIM_R                                      ~11     !1, 123
         17        ECHO                                                     ~11
         18      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
149.46 ms | 1394 KiB | 15 Q