3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?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
Jump found. Position 1 = -2
filename:       /in/Ui92C
function name:  (null)
number of ops:  8
compiled vars:  !0 = $obj, !1 = $tmp
line     #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   3     0  E >   NOP                                                      
  15     1        NEW                                              $3      :-6
         2        DO_FCALL                                      0          
         3        ASSIGN                                                   !0, $3
  16     4        FETCH_OBJ_R                                      $6      !0, 'c'
         5        ASSIGN                                                   !1, $6
  17     6        ECHO                                                     !1
         7      > RETURN                                                   1

Class Test:
Function d:
Finding entry points
Branch analysis from position: 0
Jump found. Position 1 = -2
filename:       /in/Ui92C
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 7.3.0