3v4l.org

run code in 300+ PHP versions simultaneously
<?php class Foo {} $f = function (Foo $foo) {}; $p = new ReflectionParameter($f, 0); var_dump($p->getType()->__toString());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SsL0q
function name:  (null)
number of ops:  15
compiled vars:  !0 = $f, !1 = $p
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FSsL0q%3A5%240'
          1        ASSIGN                                                   !0, ~2
    7     2        NEW                                              $4      'ReflectionParameter'
          3        SEND_VAR_EX                                              !0
          4        SEND_VAL_EX                                              0
          5        DO_FCALL                                      0          
          6        ASSIGN                                                   !1, $4
    9     7        INIT_FCALL                                               'var_dump'
          8        INIT_METHOD_CALL                                         !1, 'getType'
          9        DO_FCALL                                      0  $7      
         10        INIT_METHOD_CALL                                         $7, '__toString'
         11        DO_FCALL                                      0  $8      
         12        SEND_VAR                                                 $8
         13        DO_ICALL                                                 
         14      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FSsL0q%3A5%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/SsL0q
function name:  {closure}
number of ops:  2
compiled vars:  !0 = $foo
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    5     0  E >   RECV                                             !0      
          1      > RETURN                                                   null

End of function %00%7Bclosure%7D%2Fin%2FSsL0q%3A5%240

Class Foo: [no user functions]

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
158.52 ms | 1395 KiB | 15 Q