3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ezcReflectionReturnInfo { static function getReturnType() { echo 't'; } } class ezcReflectionMethod { use ezcReflectionReturnInfo; function getReturnType() { echo 'c'; } } $e = new ezcReflectionMethod(); $e->getReturnType();ezcReflectionReturnInfo::getReturnType();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7jkv
function name:  (null)
number of ops:  9
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   DECLARE_CLASS                                            'ezcreflectionmethod'
   19     1        NEW                                              $1      'ezcReflectionMethod'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   20     4        INIT_METHOD_CALL                                         !0, 'getReturnType'
          5        DO_FCALL                                      0          
          6        INIT_STATIC_METHOD_CALL                                  'ezcReflectionReturnInfo', 'getReturnType'
          7        DO_FCALL                                      0          
          8      > RETURN                                                   1

Class ezcReflectionReturnInfo:
Function getreturntype:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7jkv
function name:  getReturnType
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ECHO                                                     't'
    8     1      > RETURN                                                   null

End of function getreturntype

End of class ezcReflectionReturnInfo.

Class ezcReflectionMethod:
Function getreturntype:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/T7jkv
function name:  getReturnType
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   15     0  E >   ECHO                                                     'c'
   16     1      > RETURN                                                   null

End of function getreturntype

End of class ezcReflectionMethod.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
151.34 ms | 1394 KiB | 13 Q