3v4l.org

run code in 300+ PHP versions simultaneously
<?php $function = new ReflectionFunction(function( array &$a0 = null ){}); $parameters = $function->getParameters(); var_dump(array_map('strval', $parameters));
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/aXBX7
function name:  (null)
number of ops:  16
compiled vars:  !0 = $function, !1 = $parameters
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   NEW                                              $2      'ReflectionFunction'
          1        DECLARE_LAMBDA_FUNCTION                                  '%00%7Bclosure%7D%2Fin%2FaXBX7%3A3%240'
    5     2        SEND_VAL_EX                                              ~3
          3        DO_FCALL                                      0          
    3     4        ASSIGN                                                   !0, $2
    6     5        INIT_METHOD_CALL                                         !0, 'getParameters'
          6        DO_FCALL                                      0  $6      
          7        ASSIGN                                                   !1, $6
    7     8        INIT_FCALL                                               'var_dump'
          9        INIT_FCALL                                               'array_map'
         10        SEND_VAL                                                 'strval'
         11        SEND_VAR                                                 !1
         12        DO_ICALL                                         $8      
         13        SEND_VAR                                                 $8
         14        DO_ICALL                                                 
         15      > RETURN                                                   1

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

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

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
153.64 ms | 1395 KiB | 17 Q