3v4l.org

run code in 200+ php & hhvm versions
<?php class myclass { public $arr = array(); public function myfunc(){ $this->arr[1] = 'one'; $this->arr[2] = 'two'; } } $obj = new myclass; print_r($obj->arr);
based on iKVn4
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1hao8
function name:  (null)
number of ops:  9
compiled vars:  !0 = $obj
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  13     1        NEW                                              $2      :-5
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $2
  14     4        INIT_FCALL                                               'print_r'
         5        FETCH_OBJ_R                                      $5      !0, 'arr'
         6        SEND_VAR                                                 $5
         7        DO_ICALL                                                 
         8      > RETURN                                                   1

Class myclass:
Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/1hao8
function name:  myfunc
number of ops:  7
compiled vars:  none
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   8     0  E >   FETCH_OBJ_W                                      $0      'arr'
         1        ASSIGN_DIM                                               $0, 1
         2        OP_DATA                                                  'one'
   9     3        FETCH_OBJ_W                                      $2      'arr'
         4        ASSIGN_DIM                                               $2, 2
         5        OP_DATA                                                  'two'
  10     6      > RETURN                                                   null

End of function myfunc

End of class myclass.

Generated using Vulcan Logic Dumper, using php 7.3.0