3v4l.org

run code in 300+ PHP versions simultaneously
<?php class A { public function f(): static { } } var_dump((new ReflectionMethod('A', 'f'))->getReturnType()->isBuiltin());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9pBvi
function name:  (null)
number of ops:  12
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   10     0  E >   INIT_FCALL                                               'var_dump'
          1        NEW                                              $0      'ReflectionMethod'
          2        SEND_VAL_EX                                              'A'
          3        SEND_VAL_EX                                              'f'
          4        DO_FCALL                                      0          
          5        INIT_METHOD_CALL                                         $0, 'getReturnType'
          6        DO_FCALL                                      0  $2      
          7        INIT_METHOD_CALL                                         $2, 'isBuiltin'
          8        DO_FCALL                                      0  $3      
          9        SEND_VAR                                                 $3
         10        DO_ICALL                                                 
         11      > RETURN                                                   1

Class A:
Function f:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/9pBvi
function name:  f
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 f

End of class A.

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
169.61 ms | 1394 KiB | 15 Q