3v4l.org

run code in 500+ PHP versions simultaneously
<?php function abc(stdclass $a = null) { } $r = new ReflectionFunction('abc'); $p = $r->getParameters()[0]; echo $p->getType();
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/VUbIS
function name:  (null)
number of ops:  12
compiled vars:  !0 = $r, !1 = $p
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    7     0  E >   NEW                                                  $2      'ReflectionFunction'
          1        SEND_VAL_EX                                                  'abc'
          2        DO_FCALL                                          0          
          3        ASSIGN                                                       !0, $2
    8     4        INIT_METHOD_CALL                                             !0, 'getParameters'
          5        DO_FCALL                                          0  $5      
          6        FETCH_DIM_R                                          ~6      $5, 0
          7        ASSIGN                                                       !1, ~6
   10     8        INIT_METHOD_CALL                                             !1, 'getType'
          9        DO_FCALL                                          0  $8      
         10        ECHO                                                         $8
         11      > RETURN                                                       1

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

End of function abc

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
164.48 ms | 2091 KiB | 13 Q