3v4l.org

run code in 300+ PHP versions simultaneously
<?php $reflectionFunc = new ReflectionMethod('DOMNamedNodeMap::getNamedItemNS'); $reflectionParams = $reflectionFunc->getParameters(); $reflectionType1 = $reflectionParams[0]->getType(); $reflectionType2 = $reflectionParams[1]->getType(); echo $reflectionType1, PHP_EOL; var_dump($reflectionType2);
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/8MqMN
function name:  (null)
number of ops:  21
compiled vars:  !0 = $reflectionFunc, !1 = $reflectionParams, !2 = $reflectionType1, !3 = $reflectionType2
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $4      'ReflectionMethod'
          1        SEND_VAL_EX                                              'DOMNamedNodeMap%3A%3AgetNamedItemNS'
          2        DO_FCALL                                      0          
          3        ASSIGN                                                   !0, $4
    4     4        INIT_METHOD_CALL                                         !0, 'getParameters'
          5        DO_FCALL                                      0  $7      
          6        ASSIGN                                                   !1, $7
    5     7        FETCH_DIM_R                                      ~9      !1, 0
          8        INIT_METHOD_CALL                                         ~9, 'getType'
          9        DO_FCALL                                      0  $10     
         10        ASSIGN                                                   !2, $10
    6    11        FETCH_DIM_R                                      ~12     !1, 1
         12        INIT_METHOD_CALL                                         ~12, 'getType'
         13        DO_FCALL                                      0  $13     
         14        ASSIGN                                                   !3, $13
    8    15        ECHO                                                     !2
         16        ECHO                                                     '%0A'
    9    17        INIT_FCALL                                               'var_dump'
         18        SEND_VAR                                                 !3
         19        DO_ICALL                                                 
         20      > RETURN                                                   1

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
182.76 ms | 1395 KiB | 15 Q