3v4l.org

run code in 300+ PHP versions simultaneously
<?php foreach((new ReflectionMethod('DOMNamedNodeMap::getNamedItemNS'))->getParameters() as $parameter) { echo "Parameter name: "; var_dump($parameter->getName()); echo "Has type: "; var_dump($parameter[0]->getType()); var_dump($parameter[1]->getType()); var_dump($parameter[3]->getType()); }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 6, Position 2 = 33
Branch analysis from position: 6
2 jumps found. (Code = 78) Position 1 = 7, Position 2 = 33
Branch analysis from position: 7
1 jumps found. (Code = 42) Position 1 = 6
Branch analysis from position: 6
Branch analysis from position: 33
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 33
filename:       /in/j96U1
function name:  (null)
number of ops:  35
compiled vars:  !0 = $parameter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $1      'ReflectionMethod'
          1        SEND_VAL_EX                                              'DOMNamedNodeMap%3A%3AgetNamedItemNS'
          2        DO_FCALL                                      0          
          3        INIT_METHOD_CALL                                         $1, 'getParameters'
          4        DO_FCALL                                      0  $3      
          5      > FE_RESET_R                                       $4      $3, ->33
          6    > > FE_FETCH_R                                               $4, !0, ->33
    4     7    >   ECHO                                                     'Parameter+name%3A+'
    5     8        INIT_FCALL                                               'var_dump'
          9        INIT_METHOD_CALL                                         !0, 'getName'
         10        DO_FCALL                                      0  $5      
         11        SEND_VAR                                                 $5
         12        DO_ICALL                                                 
    7    13        ECHO                                                     'Has+type%3A+'
    8    14        INIT_FCALL                                               'var_dump'
         15        FETCH_DIM_R                                      ~7      !0, 0
         16        INIT_METHOD_CALL                                         ~7, 'getType'
         17        DO_FCALL                                      0  $8      
         18        SEND_VAR                                                 $8
         19        DO_ICALL                                                 
    9    20        INIT_FCALL                                               'var_dump'
         21        FETCH_DIM_R                                      ~10     !0, 1
         22        INIT_METHOD_CALL                                         ~10, 'getType'
         23        DO_FCALL                                      0  $11     
         24        SEND_VAR                                                 $11
         25        DO_ICALL                                                 
   10    26        INIT_FCALL                                               'var_dump'
         27        FETCH_DIM_R                                      ~13     !0, 3
         28        INIT_METHOD_CALL                                         ~13, 'getType'
         29        DO_FCALL                                      0  $14     
         30        SEND_VAR                                                 $14
         31        DO_ICALL                                                 
    3    32      > JMP                                                      ->6
         33    >   FE_FREE                                                  $4
   11    34      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
179.77 ms | 1396 KiB | 15 Q