3v4l.org

run code in 300+ PHP versions simultaneously
<?php $classes = get_declared_classes(); foreach($classes as $class) { $methods = get_class_methods($class); foreach($methods as $method) { if (in_array($method, array('__construct', '__destruct', '__call', '__callStatic', '__get', '__set', '__isset', '__unset', '__sleep', '__wakeup', '__toString', '__invoke', '__set_state', '__clone'))) { printf("%s::%s\n", $class, $method); } require_once($class); $functions = get_defined_functions(); $functions_list = array(); foreach($functions['user'] as $func) { $f = new ReflectionFunction($func); $args = array(); foreach($f->getParameters() as $param) { $tmparg = ''; if ($param->isPassedByReference()) $tmparg = '&'; if ($param->isOptional()) { $tmparg = '[' . $tmparg . '$' . $param->getName() . ' = ' . $param->getDefaultValue() . ']'; } else { $tmparg.= '&' . $param->getName(); } $args[] = $tmparg; unset($tmparg); } printf("function %s ( %s ){[###]...[###]}\n", $func, implode(', ', $args)); } } }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 4, Position 2 = 78
Branch analysis from position: 4
2 jumps found. (Code = 78) Position 1 = 5, Position 2 = 78
Branch analysis from position: 5
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 76
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 76
Branch analysis from position: 11
2 jumps found. (Code = 43) Position 1 = 13, Position 2 = 18
Branch analysis from position: 13
2 jumps found. (Code = 77) Position 1 = 25, Position 2 = 74
Branch analysis from position: 25
2 jumps found. (Code = 78) Position 1 = 26, Position 2 = 74
Branch analysis from position: 26
2 jumps found. (Code = 77) Position 1 = 34, Position 2 = 63
Branch analysis from position: 34
2 jumps found. (Code = 78) Position 1 = 35, Position 2 = 63
Branch analysis from position: 35
2 jumps found. (Code = 43) Position 1 = 39, Position 2 = 40
Branch analysis from position: 39
2 jumps found. (Code = 43) Position 1 = 43, Position 2 = 55
Branch analysis from position: 43
1 jumps found. (Code = 42) Position 1 = 59
Branch analysis from position: 59
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 55
1 jumps found. (Code = 42) Position 1 = 34
Branch analysis from position: 34
Branch analysis from position: 40
Branch analysis from position: 63
1 jumps found. (Code = 42) Position 1 = 25
Branch analysis from position: 25
Branch analysis from position: 63
Branch analysis from position: 74
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 74
Branch analysis from position: 18
Branch analysis from position: 76
1 jumps found. (Code = 42) Position 1 = 4
Branch analysis from position: 4
Branch analysis from position: 76
Branch analysis from position: 78
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 78
filename:       /in/1DRPd
function name:  (null)
number of ops:  80
compiled vars:  !0 = $classes, !1 = $class, !2 = $methods, !3 = $method, !4 = $functions, !5 = $functions_list, !6 = $func, !7 = $f, !8 = $args, !9 = $param, !10 = $tmparg
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    2     0  E >   INIT_FCALL                                               'get_declared_classes'
          1        DO_ICALL                                         $11     
          2        ASSIGN                                                   !0, $11
    3     3      > FE_RESET_R                                       $13     !0, ->78
          4    > > FE_FETCH_R                                               $13, !1, ->78
    4     5    >   INIT_FCALL                                               'get_class_methods'
          6        SEND_VAR                                                 !1
          7        DO_ICALL                                         $14     
          8        ASSIGN                                                   !2, $14
    5     9      > FE_RESET_R                                       $16     !2, ->76
         10    > > FE_FETCH_R                                               $16, !3, ->76
    6    11    >   IN_ARRAY                                                 !3, <array>
         12      > JMPZ                                                     ~17, ->18
    7    13    >   INIT_FCALL                                               'printf'
         14        SEND_VAL                                                 '%25s%3A%3A%25s%0A'
         15        SEND_VAR                                                 !1
         16        SEND_VAR                                                 !3
         17        DO_ICALL                                                 
    9    18    >   INCLUDE_OR_EVAL                                          !1, REQUIRE_ONCE
   10    19        INIT_FCALL                                               'get_defined_functions'
         20        DO_ICALL                                         $20     
         21        ASSIGN                                                   !4, $20
   11    22        ASSIGN                                                   !5, <array>
   12    23        FETCH_DIM_R                                      ~23     !4, 'user'
         24      > FE_RESET_R                                       $24     ~23, ->74
         25    > > FE_FETCH_R                                               $24, !6, ->74
   13    26    >   NEW                                              $25     'ReflectionFunction'
         27        SEND_VAR_EX                                              !6
         28        DO_FCALL                                      0          
         29        ASSIGN                                                   !7, $25
   14    30        ASSIGN                                                   !8, <array>
   15    31        INIT_METHOD_CALL                                         !7, 'getParameters'
         32        DO_FCALL                                      0  $29     
         33      > FE_RESET_R                                       $30     $29, ->63
         34    > > FE_FETCH_R                                               $30, !9, ->63
   16    35    >   ASSIGN                                                   !10, ''
   17    36        INIT_METHOD_CALL                                         !9, 'isPassedByReference'
         37        DO_FCALL                                      0  $32     
         38      > JMPZ                                                     $32, ->40
         39    >   ASSIGN                                                   !10, '%26'
   18    40    >   INIT_METHOD_CALL                                         !9, 'isOptional'
         41        DO_FCALL                                      0  $34     
         42      > JMPZ                                                     $34, ->55
   19    43    >   CONCAT                                           ~35     '%5B', !10
         44        CONCAT                                           ~36     ~35, '%24'
         45        INIT_METHOD_CALL                                         !9, 'getName'
         46        DO_FCALL                                      0  $37     
         47        CONCAT                                           ~38     ~36, $37
         48        CONCAT                                           ~39     ~38, '+%3D+'
         49        INIT_METHOD_CALL                                         !9, 'getDefaultValue'
         50        DO_FCALL                                      0  $40     
         51        CONCAT                                           ~41     ~39, $40
         52        CONCAT                                           ~42     ~41, '%5D'
         53        ASSIGN                                                   !10, ~42
         54      > JMP                                                      ->59
   21    55    >   INIT_METHOD_CALL                                         !9, 'getName'
         56        DO_FCALL                                      0  $44     
         57        CONCAT                                           ~45     '%26', $44
         58        ASSIGN_OP                                     8          !10, ~45
   23    59    >   ASSIGN_DIM                                               !8
         60        OP_DATA                                                  !10
   24    61        UNSET_CV                                                 !10
   15    62      > JMP                                                      ->34
         63    >   FE_FREE                                                  $30
   26    64        INIT_FCALL                                               'printf'
         65        SEND_VAL                                                 'function+%25s+%28+%25s+%29%7B%5B%23%23%23%5D...%5B%23%23%23%5D%7D%0A'
         66        SEND_VAR                                                 !6
         67        INIT_FCALL                                               'implode'
         68        SEND_VAL                                                 '%2C+'
         69        SEND_VAR                                                 !8
         70        DO_ICALL                                         $48     
         71        SEND_VAR                                                 $48
         72        DO_ICALL                                                 
   12    73      > JMP                                                      ->25
         74    >   FE_FREE                                                  $24
    5    75      > JMP                                                      ->10
         76    >   FE_FREE                                                  $16
    3    77      > JMP                                                      ->4
         78    >   FE_FREE                                                  $13
   29    79      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
176.72 ms | 1396 KiB | 23 Q