3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(Iterator $i = null) {} var_dump((string) (new ReflectionParameter('foo', 0))->getType());
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/tDkLj
function name:  (null)
number of ops:  11
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    5     0  E >   INIT_FCALL                                                   'var_dump'
          1        NEW                                                  $0      'ReflectionParameter'
          2        SEND_VAL_EX                                                  'foo'
          3        SEND_VAL_EX                                                  0
          4        DO_FCALL                                          0          
          5        INIT_METHOD_CALL                                             $0, 'getType'
          6        DO_FCALL                                          0  $2      
          7        CAST                                              6  ~3      $2
          8        SEND_VAL                                                     ~3
          9        DO_ICALL                                                     
         10      > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
220.14 ms | 2247 KiB | 14 Q