3v4l.org

run code in 300+ PHP versions simultaneously
<?php class TestParent { use TestTrait; } class Test extends TestParent { public function __construct() { $this->pri; } } trait TestTrait { public $pub = 0; protected $pro = 0; private $pri = 0; private function privateFunc() { } public function publicFunc() { } protected function protectedFunc() { } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdXm3
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'testparent'
    8     1        DECLARE_CLASS                                            'test', 'testparent'
   37     2      > RETURN                                                   1

Class TestParent: [no user functions]
Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdXm3
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     0  E >   FETCH_OBJ_R                                      ~0      'pri'
          1        FREE                                                     ~0
   13     2      > RETURN                                                   null

End of function __construct

End of class Test.

Class TestTrait:
Function privatefunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdXm3
function name:  privateFunc
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   26     0  E > > RETURN                                                   null

End of function privatefunc

Function publicfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdXm3
function name:  publicFunc
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E > > RETURN                                                   null

End of function publicfunc

Function protectedfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/LdXm3
function name:  protectedFunc
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   36     0  E > > RETURN                                                   null

End of function protectedfunc

End of class TestTrait.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.13 ms | 1394 KiB | 13 Q