3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait Attributes { protected function attributes() : string { #========== COMMENT: BUILD ELEMENT ATTRIBUTE(S); $strReturn = 'hello'; return $strReturn; } } class UL { use Attributes; protected function attributes() : string { $strReturn = 'wtf'; return $strReturn; } public function say() :string { return $this->attributes(); } } $objUL = new UL(); echo $objUL->say();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D53Ms
function name:  (null)
number of ops:  8
compiled vars:  !0 = $objUL
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   21     0  E >   DECLARE_CLASS                                            'ul'
   44     1        NEW                                              $1      'UL'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   45     4        INIT_METHOD_CALL                                         !0, 'say'
          5        DO_FCALL                                      0  $4      
          6        ECHO                                                     $4
          7      > RETURN                                                   1

Class Attributes:
Function attributes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D53Ms
function name:  attributes
number of ops:  5
compiled vars:  !0 = $strReturn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   13     0  E >   ASSIGN                                                   !0, 'hello'
   15     1        VERIFY_RETURN_TYPE                                       !0
          2      > RETURN                                                   !0
   16     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function attributes

End of class Attributes.

Class UL:
Function attributes:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D53Ms
function name:  attributes
number of ops:  5
compiled vars:  !0 = $strReturn
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   31     0  E >   ASSIGN                                                   !0, 'wtf'
   33     1        VERIFY_RETURN_TYPE                                       !0
          2      > RETURN                                                   !0
   34     3*       VERIFY_RETURN_TYPE                                       
          4*     > RETURN                                                   null

End of function attributes

Function say:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/D53Ms
function name:  say
number of ops:  6
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   40     0  E >   INIT_METHOD_CALL                                         'attributes'
          1        DO_FCALL                                      0  $0      
          2        VERIFY_RETURN_TYPE                                       $0
          3      > RETURN                                                   $0
   41     4*       VERIFY_RETURN_TYPE                                       
          5*     > RETURN                                                   null

End of function say

End of class UL.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
156.07 ms | 1399 KiB | 13 Q