3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new ReflectionFunction(function (&$a) {}); foreach ($function->getParameters() as $parameter) { echo $parameter . "\n"; }
Finding entry points
Branch analysis from position: 0
2 jumps found. (Code = 77) Position 1 = 8, Position 2 = 12
Branch analysis from position: 8
2 jumps found. (Code = 78) Position 1 = 9, Position 2 = 12
Branch analysis from position: 9
1 jumps found. (Code = 42) Position 1 = 8
Branch analysis from position: 8
Branch analysis from position: 12
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 12
filename:       /in/loAWa
function name:  (null)
number of ops:  14
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%2FloAWa%3A3%240'
          2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
          4        ASSIGN                                                   !0, $2
    4     5        INIT_METHOD_CALL                                         !0, 'getParameters'
          6        DO_FCALL                                      0  $6      
          7      > FE_RESET_R                                       $7      $6, ->12
          8    > > FE_FETCH_R                                               $7, !1, ->12
    5     9    >   CONCAT                                           ~8      !1, '%0A'
         10        ECHO                                                     ~8
    4    11      > JMP                                                      ->8
         12    >   FE_FREE                                                  $7
    6    13      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2FloAWa%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/loAWa
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%2FloAWa%3A3%240

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
152.93 ms | 1394 KiB | 13 Q