3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ary[1] = 123; $obj = (object)$ary; var_dump($obj, $obj->{1});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/vFuWT
function name:  (null)
number of ops:  10
compiled vars:  !0 = $ary, !1 = $obj
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    2     0  E >   ASSIGN_DIM                                                   !0, 1
          1        OP_DATA                                                      123
    3     2        CAST                                              8  ~3      !0
          3        ASSIGN                                                       !1, ~3
    4     4        INIT_FCALL                                                   'var_dump'
          5        SEND_VAR                                                     !1
          6        FETCH_OBJ_R                                          ~5      !1, '1'
          7        SEND_VAL                                                     ~5
          8        DO_ICALL                                                     
          9      > RETURN                                                       1

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
172.34 ms | 2859 KiB | 14 Q