3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new ReflectionFunction(function (&$a) {}); echo $function . "\n"; foreach ($function->getParameters() as $parameter) { echo $parameter . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 10, Position 2 = 14
Branch analysis from position: 10
2 jumps found. (Code = 78) Position 1 = 11, Position 2 = 14
Branch analysis from position: 11
1 jumps found. (Code = 42) Position 1 = 10
Branch analysis from position: 10
Branch analysis from position: 14
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 14
filename:       /in/KBoee
function name:  (null)
number of ops:  16
compiled vars:  !0 = $function, !1 = $parameter
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ReflectionFunction'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FKBoee%3A3%240'
          2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        CONCAT                                           ~6      !0, '%0A'
          6        ECHO                                                     ~6
    6     7        INIT_METHOD_CALL                                         !0, 'getParameters'
          8        DO_FCALL                                      0  $7      
          9      > FE_RESET_R                                       $8      $7, ->14
         10    > > FE_FETCH_R                                               $8, !1, ->14
    7    11    >   CONCAT                                           ~9      !1, '%0A'
         12        ECHO                                                     ~9
    6    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $8
    8    15      > RETURN                                                   1

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

End of function %00%7Bclosure%7D%2Fin%2FKBoee%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
164.71 ms | 1398 KiB | 13 Q