3v4l.org

run code in 300+ PHP versions simultaneously
<?php class haha { public function __get($var) { echo 'testando'; return $var; } } $o = new haha(); echo $o->gh[2];
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9XhMm
function name:  (null)
number of ops:  7
compiled vars:  !0 = $o
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   14     0  E >   NEW                                              $1      'haha'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $1
   15     3        FETCH_OBJ_R                                      ~4      !0, 'gh'
          4        FETCH_DIM_R                                      ~5      ~4, 2
          5        ECHO                                                     ~5
          6      > RETURN                                                   1

Class haha:
Function __get:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9XhMm
function name:  __get
number of ops:  4
compiled vars:  !0 = $var
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     'testando'
    9     2      > RETURN                                                   !0
   10     3*     > RETURN                                                   null

End of function __get

End of class haha.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
171.34 ms | 1393 KiB | 13 Q