3v4l.org

run code in 300+ PHP versions simultaneously
<?php class x { protected $_x = array(); public function __get($k) { return $this->_x; } } $x =new x; $x->a[b] = 4; print_r($x);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xtc62
function name:  (null)
number of ops:  11
compiled vars:  !0 = $x
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   NEW                                              $1      'x'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   10     3        FETCH_CONSTANT                                   ~5      'b'
          4        FETCH_OBJ_W                                      $4      !0, 'a'
          5        ASSIGN_DIM                                               $4, ~5
          6        OP_DATA                                                  4
   11     7        INIT_FCALL                                               'print_r'
          8        SEND_VAR                                                 !0
          9        DO_ICALL                                                 
         10      > RETURN                                                   1

Class x:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Xtc62
function name:  __get
number of ops:  4
compiled vars:  !0 = $k
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   RECV                                             !0      
    5     1        FETCH_OBJ_R                                      ~1      '_x'
          2      > RETURN                                                   ~1
    6     3*     > RETURN                                                   null

End of function __get

End of class x.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.99 ms | 942 KiB | 16 Q