3v4l.org

run code in 300+ PHP versions simultaneously
<?php trait ezcReflectionReturnInfo { static function getReturnType() { echo 't'; } } class ezcReflectionMethod { use ezcReflectionReturnInfo; private $a; function getReturnType() { $this->a = 'a'; echo $this->a; } } $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/nv8kP
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'
   21     1        NEW                                              $1      'ezcReflectionMethod'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $1
   22     4        INIT_METHOD_CALL                                         !0, 'getReturnType'
          5        DO_FCALL                                      0          
   23     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/nv8kP
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/nv8kP
function name:  getReturnType
number of ops:  5
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   16     0  E >   ASSIGN_OBJ                                               'a'
          1        OP_DATA                                                  'a'
   17     2        FETCH_OBJ_R                                      ~1      'a'
          3        ECHO                                                     ~1
   18     4      > RETURN                                                   null

End of function getreturntype

End of class ezcReflectionMethod.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.33 ms | 939 KiB | 14 Q