3v4l.org

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


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

End of Dynamic Function 0

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
138.78 ms | 1433 KiB | 13 Q