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 "Caught Throwable: ", $e->getMessage(); } catch (Exception $e) { echo "Caught Exception: ", $e->getMessage(); } try { (new MockReflectionMethod)->getReturnType(); } catch (Throwable $e) { echo "Caught Throwable: ", $e->getMessage(); } catch (Exception $e) { echo "Caught Exception: ", $e->getMessage(); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
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 = 12
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 17
Branch analysis from position: 17
Branch analysis from position: 12
2 jumps found. (Code = 107) Position 1 = 13, Position 2 = -2
Branch analysis from position: 13
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Found catch point at position: 12
Branch analysis from position: 12
Found catch point at position: 22
Branch analysis from position: 22
2 jumps found. (Code = 107) Position 1 = 23, Position 2 = 28
Branch analysis from position: 23
1 jumps found. (Code = 42) Position 1 = 33
Branch analysis from position: 33
Branch analysis from position: 28
2 jumps found. (Code = 107) Position 1 = 29, Position 2 = -2
Branch analysis from position: 29
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 28
Branch analysis from position: 28
filename:       /in/9ScYT
function name:  (null)
number of ops:  34
compiled vars:  !0 = $e
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   DECLARE_CLASS                                            'mockreflectionmethod', 'reflectionfunctionabstract'
   17     1        NEW                                              $1      'MockReflectionMethod'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'isStatic'
          4        DO_FCALL                                      0          
          5      > JMP                                                      ->17
   18     6  E > > CATCH                                                    'Throwable', ->12
   19     7    >   ECHO                                                     'Caught+Throwable%3A+'
          8        INIT_METHOD_CALL                                         !0, 'getMessage'
          9        DO_FCALL                                      0  $4      
         10        ECHO                                                     $4
         11      > JMP                                                      ->17
   20    12  E > > CATCH                                       last         'Exception'
   21    13    >   ECHO                                                     'Caught+Exception%3A+'
         14        INIT_METHOD_CALL                                         !0, 'getMessage'
         15        DO_FCALL                                      0  $5      
         16        ECHO                                                     $5
   25    17    >   NEW                                              $6      'MockReflectionMethod'
         18        DO_FCALL                                      0          
         19        INIT_METHOD_CALL                                         $6, 'getReturnType'
         20        DO_FCALL                                      0          
         21      > JMP                                                      ->33
   26    22  E > > CATCH                                                    'Throwable', ->28
   27    23    >   ECHO                                                     'Caught+Throwable%3A+'
         24        INIT_METHOD_CALL                                         !0, 'getMessage'
         25        DO_FCALL                                      0  $9      
         26        ECHO                                                     $9
         27      > JMP                                                      ->33
   28    28  E > > CATCH                                       last         'Exception'
   29    29    >   ECHO                                                     'Caught+Exception%3A+'
         30        INIT_METHOD_CALL                                         !0, 'getMessage'
         31        DO_FCALL                                      0  $10     
         32        ECHO                                                     $10
   30    33    > > RETURN                                                   1

Class MockReflectionMethod:
Function export:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9ScYT
function name:  export
number of ops:  1
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     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/9ScYT
function name:  __toString
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   12     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:
172.95 ms | 1399 KiB | 13 Q