3v4l.org

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.63 ms | 1394 KiB | 15 Q