3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new \reflectionFunction('spl_autoload_unregister'); echo 'Parameters:' . PHP_EOL; foreach ($function->getParameters() as $parameter) { echo '* ' . $parameter->getName() . PHP_EOL; } echo str_repeat('-', 20) . PHP_EOL; echo $function->getNumberOfRequiredParameters() . '/' . $function->getNumberOfParameters() . PHP_EOL;
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 15
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 15
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 15
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 15
filename:       /in/JoALv
function name:  (null)
number of ops:  31
compiled vars:  !0 = $function, !1 = $parameter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'reflectionFunction'
          1        SEND_VAL_EX                                              'spl_autoload_unregister'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $2
    5     4        ECHO                                                     'Parameters%3A%0A'
    7     5        INIT_METHOD_CALL                                         !0, 'getParameters'
          6        DO_FCALL                                      0  $5      
          7      > FE_RESET_R                                       $6      $5, ->15
          8    > > FE_FETCH_R                                               $6, !1, ->15
    9     9    >   INIT_METHOD_CALL                                         !1, 'getName'
         10        DO_FCALL                                      0  $7      
         11        CONCAT                                           ~8      '%2A+', $7
         12        CONCAT                                           ~9      ~8, '%0A'
         13        ECHO                                                     ~9
    7    14      > JMP                                                      ->8
         15    >   FE_FREE                                                  $6
   12    16        INIT_FCALL                                               'str_repeat'
         17        SEND_VAL                                                 '-'
         18        SEND_VAL                                                 20
         19        DO_ICALL                                         $10     
         20        CONCAT                                           ~11     $10, '%0A'
         21        ECHO                                                     ~11
   14    22        INIT_METHOD_CALL                                         !0, 'getNumberOfRequiredParameters'
         23        DO_FCALL                                      0  $12     
         24        CONCAT                                           ~13     $12, '%2F'
         25        INIT_METHOD_CALL                                         !0, 'getNumberOfParameters'
         26        DO_FCALL                                      0  $14     
         27        CONCAT                                           ~15     ~13, $14
         28        CONCAT                                           ~16     ~15, '%0A'
         29        ECHO                                                     ~16
         30      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.66 ms | 1388 KiB | 15 Q