3v4l.org

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

End of function getreturntype

End of class ezcReflectionMethod.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
161.24 ms | 1394 KiB | 13 Q