3v4l.org

run code in 300+ PHP versions simultaneously
<?php interface FabricAwareInterface { public function setFabric($fabric); //protected function getFabric(); } trait FabricAware { private $_fabric; public function setFabric($f) { $this->_fabric = $f; } protected function getFabric() { return $this->_fabric; } } class ClassA implements FabricAwareInterface { use FabricAware; public function init() { echo 'OK'; } } $a = new ClassA(); $a->init();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07rXY
function name:  (null)
number of ops:  7
compiled vars:  !0 = $a
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   19     0  E >   DECLARE_CLASS                                            'classa'
   27     1        NEW                                              $1      'ClassA'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   28     4        INIT_METHOD_CALL                                         !0, 'init'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class FabricAwareInterface:
Function setfabric:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07rXY
function name:  setFabric
number of ops:  2
compiled vars:  !0 = $fabric
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function setfabric

End of class FabricAwareInterface.

Class FabricAware:
Function setfabric:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07rXY
function name:  setFabric
number of ops:  4
compiled vars:  !0 = $f
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   RECV                                             !0      
   12     1        ASSIGN_OBJ                                               '_fabric'
          2        OP_DATA                                                  !0
   13     3      > RETURN                                                   null

End of function setfabric

Function getfabric:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07rXY
function name:  getFabric
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   FETCH_OBJ_R                                      ~0      '_fabric'
          1      > RETURN                                                   ~0
   16     2*     > RETURN                                                   null

End of function getfabric

End of class FabricAware.

Class ClassA:
Function init:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/07rXY
function name:  init
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   23     0  E >   ECHO                                                     'OK'
   24     1      > RETURN                                                   null

End of function init

End of class ClassA.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
168.88 ms | 1386 KiB | 13 Q