3v4l.org

run code in 300+ PHP versions simultaneously
<?php class PlayerItem { public $item_id = 17073; } $test = array("212"=>new PlayerItem()); var_dump($test[212]->item_id);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/NkE19
function name:  (null)
number of ops:  10
compiled vars:  !0 = $test
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $1      'PlayerItem'
          1        DO_FCALL                                      0          
          2        INIT_ARRAY                                       ~3      $1, 212
          3        ASSIGN                                                   !0, ~3
    6     4        INIT_FCALL                                               'var_dump'
          5        FETCH_DIM_R                                      ~5      !0, 212
          6        FETCH_OBJ_R                                      ~6      ~5, 'item_id'
          7        SEND_VAL                                                 ~6
          8        DO_ICALL                                                 
          9      > RETURN                                                   1

Class PlayerItem: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.21 ms | 998 KiB | 14 Q