3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new ReflectionFunction( function ( $a, &$b, array $c, array &$d, \Type $e, \Type &$f, \Namespaced\Type $g, \Namespaced\Type &$h, FeatureDetector $i, $j = 'string', &$k = 111, array $l = array('a', 'b', 'c' => 'd'), array &$m = null, \Type $n = null, \Type &$o = null, \Namespaced\Type $p = null, \Namespaced\Type &$q = null ) {}); 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/18HgG
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%2F18HgG%3A3%240'
   21     2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
    3     4        ASSIGN                                                   !0, $2
   22     5        CONCAT                                           ~6      !0, '%0A'
          6        ECHO                                                     ~6
   24     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
   25    11    >   CONCAT                                           ~9      !1, '%0A'
         12        ECHO                                                     ~9
   24    13      > JMP                                                      ->10
         14    >   FE_FREE                                                  $8
   26    15      > RETURN                                                   1

Function %00%7Bclosure%7D%2Fin%2F18HgG%3A3%240:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/18HgG
function name:  {closure}
number of ops:  18
compiled vars:  !0 = $a, !1 = $b, !2 = $c, !3 = $d, !4 = $e, !5 = $f, !6 = $g, !7 = $h, !8 = $i, !9 = $j, !10 = $k, !11 = $l, !12 = $m, !13 = $n, !14 = $o, !15 = $p, !16 = $q
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
          1        RECV                                             !1      
          2        RECV                                             !2      
          3        RECV                                             !3      
          4        RECV                                             !4      
          5        RECV                                             !5      
          6        RECV                                             !6      
          7        RECV                                             !7      
          8        RECV                                             !8      
          9        RECV_INIT                                        !9      'string'
         10        RECV_INIT                                        !10     111
         11        RECV_INIT                                        !11     <array>
         12        RECV_INIT                                        !12     null
         13        RECV_INIT                                        !13     null
         14        RECV_INIT                                        !14     null
         15        RECV_INIT                                        !15     null
         16        RECV_INIT                                        !16     null
   21    17      > RETURN                                                   null

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
154.5 ms | 1399 KiB | 13 Q