3v4l.org

run code in 300+ PHP versions simultaneously
<?php $fnc_array = get_defined_functions(); $fnc_array = $fnc_array['internal']; //foreach ($fnc_array as $fnc_name) { $ref_func = new ReflectionFunction('call_user_func'); foreach($ref_func->getParameters() as $parm) { var_dump($parm::isCallable()); if($parm->isCallable()) { echo "$fnc_name (" . $ref_func->getNumberOfParameters() .")\n"; break; } } //} //
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 12, Position 2 = 31
Branch analysis from position: 12
2 jumps found. (Code = 78) Position 1 = 13, Position 2 = 31
Branch analysis from position: 13
2 jumps found. (Code = 43) Position 1 = 22, Position 2 = 30
Branch analysis from position: 22
1 jumps found. (Code = 42) Position 1 = 31
Branch analysis from position: 31
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 30
1 jumps found. (Code = 42) Position 1 = 12
Branch analysis from position: 12
Branch analysis from position: 31
Branch analysis from position: 31
filename:       /in/br5qJ
function name:  (null)
number of ops:  33
compiled vars:  !0 = $fnc_array, !1 = $ref_func, !2 = $parm, !3 = $fnc_name
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_defined_functions'
          1        DO_ICALL                                         $4      
          2        ASSIGN                                                   !0, $4
    3     3        FETCH_DIM_R                                      ~6      !0, 'internal'
          4        ASSIGN                                                   !0, ~6
    6     5        NEW                                              $8      'ReflectionFunction'
          6        SEND_VAL_EX                                              'call_user_func'
          7        DO_FCALL                                      0          
          8        ASSIGN                                                   !1, $8
    8     9        INIT_METHOD_CALL                                         !1, 'getParameters'
         10        DO_FCALL                                      0  $11     
         11      > FE_RESET_R                                       $12     $11, ->31
         12    > > FE_FETCH_R                                               $12, !2, ->31
    9    13    >   INIT_FCALL                                               'var_dump'
         14        FETCH_CLASS                                   0  $13     !2
         15        INIT_STATIC_METHOD_CALL                                  $13, 'isCallable'
         16        DO_FCALL                                      0  $14     
         17        SEND_VAR                                                 $14
         18        DO_ICALL                                                 
   10    19        INIT_METHOD_CALL                                         !2, 'isCallable'
         20        DO_FCALL                                      0  $16     
         21      > JMPZ                                                     $16, ->30
   11    22    >   NOP                                                      
         23        FAST_CONCAT                                      ~17     !3, '+%28'
         24        INIT_METHOD_CALL                                         !1, 'getNumberOfParameters'
         25        DO_FCALL                                      0  $18     
         26        CONCAT                                           ~19     ~17, $18
         27        CONCAT                                           ~20     ~19, '%29%0A'
         28        ECHO                                                     ~20
   12    29      > JMP                                                      ->31
    8    30    > > JMP                                                      ->12
         31    >   FE_FREE                                                  $12
   23    32      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
160.65 ms | 1396 KiB | 17 Q