3v4l.org

run code in 500+ PHP versions simultaneously
<?php namespace Http\Promise; interface Promise { public function then(callable $onFulfilled = null, ?callable $onRejected = null); } foreach ((new \ReflectionMethod(Promise::class, 'then'))->getParameters() as $p) { var_dump((string) $p); $t = $p->getType(); var_dump($t->getName()); var_dump($t->allowsNull()); var_dump((string) $t); echo "\n\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 7, Position 2 = 31
Branch analysis from position: 7
2 jumps found. (Code = 78) Position 1 = 8, Position 2 = 31
Branch analysis from position: 8
1 jumps found. (Code = 42) Position 1 = 7
Branch analysis from position: 7
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 31
filename:       /in/EQimk
function name:  (null)
number of ops:  33
compiled vars:  !0 = $p, !1 = $t
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   10     0  E >   NEW                                                  $2      'ReflectionMethod'
          1        SEND_VAL_EX                                                  'Http%5CPromise%5CPromise'
          2        SEND_VAL_EX                                                  'then'
          3        DO_FCALL                                          0          
          4        INIT_METHOD_CALL                                             $2, 'getParameters'
          5        DO_FCALL                                          0  $4      
          6      > FE_RESET_R                                           $5      $4, ->31
          7    > > FE_FETCH_R                                                   $5, !0, ->31
   11     8    >   INIT_NS_FCALL_BY_NAME                                        'Http%5CPromise%5Cvar_dump'
          9        CAST                                              6  ~6      !0
         10        SEND_VAL_EX                                                  ~6
         11        DO_FCALL                                          0          
   12    12        INIT_METHOD_CALL                                             !0, 'getType'
         13        DO_FCALL                                          0  $8      
         14        ASSIGN                                                       !1, $8
   13    15        INIT_NS_FCALL_BY_NAME                                        'Http%5CPromise%5Cvar_dump'
         16        INIT_METHOD_CALL                                             !1, 'getName'
         17        DO_FCALL                                          0  $10     
         18        SEND_VAR_NO_REF_EX                                           $10
         19        DO_FCALL                                          0          
   14    20        INIT_NS_FCALL_BY_NAME                                        'Http%5CPromise%5Cvar_dump'
         21        INIT_METHOD_CALL                                             !1, 'allowsNull'
         22        DO_FCALL                                          0  $12     
         23        SEND_VAR_NO_REF_EX                                           $12
         24        DO_FCALL                                          0          
   15    25        INIT_NS_FCALL_BY_NAME                                        'Http%5CPromise%5Cvar_dump'
         26        CAST                                              6  ~14     !1
         27        SEND_VAL_EX                                                  ~14
         28        DO_FCALL                                          0          
   17    29        ECHO                                                         '%0A%0A'
   10    30      > JMP                                                          ->7
         31    >   FE_FREE                                                      $5
   18    32      > RETURN                                                       1

Class Http\Promise\Promise:
Function then:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/EQimk
function name:  then
number of ops:  3
compiled vars:  !0 = $onFulfilled, !1 = $onRejected
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   RECV_INIT                                            !0      null
          1        RECV_INIT                                            !1      null
          2      > RETURN                                                       null

End of function then

End of class Http\Promise\Promise.

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
161.07 ms | 1699 KiB | 14 Q