3v4l.org

run code in 500+ PHP versions simultaneously
<?php function foo(int $bar) {} $rp = new ReflectionParameter('foo', 'bar'); try { var_dump($rp->getClass()); } catch (Exception $e) { var_dump((string)$e); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 16
Branch analysis from position: 16
1 jumps found. (Code = 62) Position 1 = -2
Found catch point at position: 11
Branch analysis from position: 11
2 jumps found. (Code = 107) Position 1 = 12, Position 2 = -2
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OTQQa
function name:  (null)
number of ops:  17
compiled vars:  !0 = $rp, !1 = $e
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    4     0  E >   NEW                                                  $2      'ReflectionParameter'
          1        SEND_VAL_EX                                                  'foo'
          2        SEND_VAL_EX                                                  'bar'
          3        DO_FCALL                                          0          
          4        ASSIGN                                                       !0, $2
    6     5        INIT_FCALL                                                   'var_dump'
          6        INIT_METHOD_CALL                                             !0, 'getClass'
          7        DO_FCALL                                          0  $5      
          8        SEND_VAR                                                     $5
          9        DO_ICALL                                                     
         10      > JMP                                                          ->16
    7    11  E > > CATCH                                           last         'Exception'
    8    12    >   INIT_FCALL                                                   'var_dump'
         13        CAST                                              6  ~7      !1
         14        SEND_VAL                                                     ~7
         15        DO_ICALL                                                     
    9    16    > > RETURN                                                       1

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

End of function foo

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
215.85 ms | 2802 KiB | 14 Q