3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.67 ms | 1394 KiB | 15 Q