3v4l.org

run code in 300+ PHP versions simultaneously
<?php function someFunction(int $param, $param2) {} $reflectionFunc = new ReflectionFunction('someFunction'); $reflectionParams = $reflectionFunc->getParameters(); $reflectionType1 = $reflectionParams[0]->getType(); var_dump((string) $reflectionType1, $reflectionType1->isBuiltin());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jo4R5
function name:  (null)
number of ops:  19
compiled vars:  !0 = $reflectionFunc, !1 = $reflectionParams, !2 = $reflectionType1
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   NEW                                              $3      'ReflectionFunction'
          1        SEND_VAL_EX                                              'someFunction'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $3
    6     4        INIT_METHOD_CALL                                         !0, 'getParameters'
          5        DO_FCALL                                      0  $6      
          6        ASSIGN                                                   !1, $6
    7     7        FETCH_DIM_R                                      ~8      !1, 0
          8        INIT_METHOD_CALL                                         ~8, 'getType'
          9        DO_FCALL                                      0  $9      
         10        ASSIGN                                                   !2, $9
    8    11        INIT_FCALL                                               'var_dump'
         12        CAST                                          6  ~11     !2
         13        SEND_VAL                                                 ~11
         14        INIT_METHOD_CALL                                         !2, 'isBuiltin'
         15        DO_FCALL                                      0  $12     
         16        SEND_VAR                                                 $12
         17        DO_ICALL                                                 
         18      > RETURN                                                   1

Function somefunction:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/Jo4R5
function name:  someFunction
number of ops:  3
compiled vars:  !0 = $param, !1 = $param2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2      > RETURN                                                   null

End of function somefunction

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
185.98 ms | 1399 KiB | 15 Q