3v4l.org

run code in 300+ PHP versions simultaneously
<?php class MockReflectionMethod extends ReflectionFunctionAbstract { public static function export() {} public function __toString() {} } try { (new MockReflectionMethod)->isStatic(); } catch(Throwable $e) { echo $e->getMessage(); } try { (new MockReflectionMethod)->getReturnType(); // same issue with returnsReference } catch(Throwable $e) { echo $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 6
Branch analysis from position: 6
2 jumps found. (Code = 107) Position 1 = 7, Position 2 = -2
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 19
Branch analysis from position: 19
Found catch point at position: 15
Branch analysis from position: 15
2 jumps found. (Code = 107) Position 1 = 16, Position 2 = -2
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7LjRK
function name:  (null)
number of ops:  20
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'mockreflectionmethod', 'reflectionfunctionabstract'
   11     1        NEW                                              $1      'MockReflectionMethod'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'isStatic'
          4        DO_FCALL                                      0          
          5      > JMP                                                      ->10
   12     6  E > > CATCH                                       last         'Throwable'
   13     7    >   INIT_METHOD_CALL                                         !0, 'getMessage'
          8        DO_FCALL                                      0  $4      
          9        ECHO                                                     $4
   17    10    >   NEW                                              $5      'MockReflectionMethod'
         11        DO_FCALL                                      0          
         12        INIT_METHOD_CALL                                         $5, 'getReturnType'
         13        DO_FCALL                                      0          
         14      > JMP                                                      ->19
   19    15  E > > CATCH                                       last         'Throwable'
   20    16    >   INIT_METHOD_CALL                                         !0, 'getMessage'
         17        DO_FCALL                                      0  $8      
         18        ECHO                                                     $8
   21    19    > > RETURN                                                   1

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

End of function export

Function __tostring:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/7LjRK
function name:  __toString
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   VERIFY_RETURN_TYPE                                       
          1      > RETURN                                                   null

End of function __tostring

End of class MockReflectionMethod.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
128.93 ms | 1399 KiB | 13 Q