3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait aTrait { protected function one() { echo "a-one"; } } trait bTrait { use aTrait; protected function one() { echo "b-one"; } } class Test { use bTrait; private function __construct() { $this->one(); } }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ka5ui
function name:  (null)
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    9     0  E >   DECLARE_CLASS                                            'btrait'
   17     1        DECLARE_CLASS                                            'test'
   23     2      > RETURN                                                   1

Class aTrait:
Function one:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ka5ui
function name:  one
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   ECHO                                                     'a-one'
    6     1      > RETURN                                                   null

End of function one

End of class aTrait.

Class bTrait:
Function one:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ka5ui
function name:  one
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ECHO                                                     'b-one'
   14     1      > RETURN                                                   null

End of function one

End of class bTrait.

Class Test:
Function __construct:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Ka5ui
function name:  __construct
number of ops:  3
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   INIT_METHOD_CALL                                         'one'
          1        DO_FCALL                                      0          
   22     2      > RETURN                                                   null

End of function __construct

End of class Test.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
157.56 ms | 1393 KiB | 13 Q