3v4l.org

run code in 300+ PHP versions simultaneously
<?php $functionName = 'array_multisort'; printf("Params of %s:\n", $functionName); foreach ((new ReflectionFunction($functionName))->getParameters() as $param) { printf("Param \$%s: isPassedByReference=%s, isOptional=%s, isVariadic=%s\n", $param->getName(), var_export($param->isPassedByReference(), true), var_export($param->isOptional(), true), var_export($param->isVariadic(), true)); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 11, Position 2 = 40
Branch analysis from position: 11
2 jumps found. (Code = 78) Position 1 = 12, Position 2 = 40
Branch analysis from position: 12
1 jumps found. (Code = 42) Position 1 = 11
Branch analysis from position: 11
Branch analysis from position: 40
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 40
filename:       /in/sZcuu
function name:  (null)
number of ops:  42
compiled vars:  !0 = $functionName, !1 = $param
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    4     0  E >   ASSIGN                                                   !0, 'array_multisort'
    5     1        INIT_FCALL                                               'printf'
          2        SEND_VAL                                                 'Params+of+%25s%3A%0A'
          3        SEND_VAR                                                 !0
          4        DO_ICALL                                                 
    6     5        NEW                                              $4      'ReflectionFunction'
          6        SEND_VAR_EX                                              !0
          7        DO_FCALL                                      0          
          8        INIT_METHOD_CALL                                         $4, 'getParameters'
          9        DO_FCALL                                      0  $6      
         10      > FE_RESET_R                                       $7      $6, ->40
         11    > > FE_FETCH_R                                               $7, !1, ->40
    7    12    >   INIT_FCALL                                               'printf'
         13        SEND_VAL                                                 'Param+%24%25s%3A+isPassedByReference%3D%25s%2C+isOptional%3D%25s%2C+isVariadic%3D%25s%0A'
    8    14        INIT_METHOD_CALL                                         !1, 'getName'
         15        DO_FCALL                                      0  $8      
         16        SEND_VAR                                                 $8
    9    17        INIT_FCALL                                               'var_export'
         18        INIT_METHOD_CALL                                         !1, 'isPassedByReference'
         19        DO_FCALL                                      0  $9      
         20        SEND_VAR                                                 $9
         21        SEND_VAL                                                 <true>
         22        DO_ICALL                                         $10     
         23        SEND_VAR                                                 $10
   10    24        INIT_FCALL                                               'var_export'
         25        INIT_METHOD_CALL                                         !1, 'isOptional'
         26        DO_FCALL                                      0  $11     
         27        SEND_VAR                                                 $11
         28        SEND_VAL                                                 <true>
         29        DO_ICALL                                         $12     
         30        SEND_VAR                                                 $12
   11    31        INIT_FCALL                                               'var_export'
         32        INIT_METHOD_CALL                                         !1, 'isVariadic'
         33        DO_FCALL                                      0  $13     
         34        SEND_VAR                                                 $13
         35        SEND_VAL                                                 <true>
         36        DO_ICALL                                         $14     
         37        SEND_VAR                                                 $14
    7    38        DO_ICALL                                                 
    6    39      > JMP                                                      ->11
         40    >   FE_FREE                                                  $7
   12    41      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
143.66 ms | 1006 KiB | 15 Q