3v4l.org

run code in 500+ PHP versions simultaneously
<?php declare(strict_types=1); /** * @template T * * @param ReflectionClass<T> $class * * @return array<int, method-string<T>> */ function MethodNames(ReflectionClass $class, int $filter = null) : array { return array_map( /** * @return method-string<T> */ function (ReflectionMethod $method) : string { return $method->name; }, $class->getMethods($filter) ); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OELW1
function name:  (null)
number of ops:  1
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   21     0  E > > RETURN                                                       1

Function methodnames:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OELW1
function name:  MethodNames
number of ops:  14
compiled vars:  !0 = $class, !1 = $filter
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   11     0  E >   RECV                                                 !0      
          1        RECV_INIT                                            !1      null
   12     2        INIT_FCALL                                                   'array_map'
   16     3        DECLARE_LAMBDA_FUNCTION                              ~2      [0]
   18     4        SEND_VAL                                                     ~2
   19     5        INIT_METHOD_CALL                                             !0, 'getMethods'
          6        SEND_VAR_EX                                                  !1
          7        DO_FCALL                                          0  $3      
          8        SEND_VAR                                                     $3
   12     9        DO_ICALL                                             $4      
   19    10        VERIFY_RETURN_TYPE                                           $4
         11      > RETURN                                                       $4
   21    12*       VERIFY_RETURN_TYPE                                           
         13*     > RETURN                                                       null


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OELW1
function name:  {closure:MethodNames():16}
number of ops:  6
compiled vars:  !0 = $method
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
   16     0  E >   RECV                                                 !0      
   17     1        FETCH_OBJ_R                                          ~1      !0, 'name'
          2        VERIFY_RETURN_TYPE                                           ~1
          3      > RETURN                                                       ~1
   18     4*       VERIFY_RETURN_TYPE                                           
          5*     > RETURN                                                       null

End of Dynamic Function 0

End of function methodnames

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.46 ms | 2251 KiB | 14 Q