3v4l.org

run code in 300+ PHP versions simultaneously
<?php function foo($in) { return $in; } $inParam = (new ReflectionParameter('foo', 'in')); echo "Param: ", $inParam, PHP_EOL, "Type: ", $inParam->getType();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdupZ
function name:  (null)
number of ops:  13
compiled vars:  !0 = $inParam
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    6     0  E >   NEW                                              $1      'ReflectionParameter'
          1        SEND_VAL_EX                                              'foo'
          2        SEND_VAL_EX                                              'in'
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $1
    8     5        ECHO                                                     'Param%3A+'
          6        ECHO                                                     !0
          7        ECHO                                                     '%0A'
          8        ECHO                                                     'Type%3A+'
          9        INIT_METHOD_CALL                                         !0, 'getType'
         10        DO_FCALL                                      0  $4      
         11        ECHO                                                     $4
         12      > RETURN                                                   1

Function foo:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/qdupZ
function name:  foo
number of ops:  3
compiled vars:  !0 = $in
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    4     1      > RETURN                                                   !0
    5     2*     > RETURN                                                   null

End of function foo

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
140.05 ms | 1393 KiB | 13 Q