3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Test { public $a= 'a'; protected $b = 'b'; private $c = 'c'; function D() { return $this->c; } } $obj = new Test(); $tmp = $obj->$c; echo $tmp;
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0aqGV
function name:  (null)
number of ops:  7
compiled vars:  !0 = $obj, !1 = $tmp, !2 = $c
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   NEW                                              $3      'Test'
          1        DO_FCALL                                      0          
          2        ASSIGN                                                   !0, $3
   16     3        FETCH_OBJ_R                                      ~6      !0, !2
          4        ASSIGN                                                   !1, ~6
   17     5        ECHO                                                     !1
          6      > RETURN                                                   1

Class Test:
Function d:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/0aqGV
function name:  D
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   FETCH_OBJ_R                                      ~0      'c'
          1      > RETURN                                                   ~0
   12     2*     > RETURN                                                   null

End of function d

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.52 ms | 1393 KiB | 13 Q