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(); ezcReflectionMethod::getReturnType();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BR08n
function name:  (null)
number of ops:  7
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_STATIC_METHOD_CALL                                  'ezcReflectionMethod', 'getReturnType'
          5        DO_FCALL                                      0          
          6      > RETURN                                                   1

Class ezcReflectionReturnInfo:
Function getreturntype:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/BR08n
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/BR08n
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:
150.71 ms | 1393 KiB | 13 Q