3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr = array('123' => '456'); $obj = (object)$arr; $arr = (array)$obj; 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/0nSt6
function name:  (null)
number of ops:  16
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
    5     3        CAST                                          7  ~5      !1
          4        ASSIGN                                                   !0, ~5
    7     5        INIT_FCALL                                               'var_dump'
          6        SEND_VAR                                                 !0
          7        FETCH_DIM_R                                      ~7      !0, 123
          8        SEND_VAL                                                 ~7
          9        DO_ICALL                                                 
    8    10        INIT_FCALL                                               'var_dump'
         11        SEND_VAR                                                 !1
         12        FETCH_OBJ_R                                      ~9      !1, '123'
         13        SEND_VAL                                                 ~9
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.23 ms | 1394 KiB | 15 Q