3v4l.org

run code in 300+ PHP versions simultaneously
<?php function myfunc(array $event) { }; $i = 1000; while($i--) { $reflection = new ReflectionFunction('myfunc'); $params = $reflection->getParameters(); var_dump($params[0]->isArray()); }
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 42) Position 1 = 15
Branch analysis from position: 15
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
1 jumps found. (Code = 62) Position 1 = -2
Branch analysis from position: 2
2 jumps found. (Code = 44) Position 1 = 17, Position 2 = 2
Branch analysis from position: 17
Branch analysis from position: 2
filename:       /in/OuYLb
function name:  (null)
number of ops:  18
compiled vars:  !0 = $i, !1 = $reflection, !2 = $params
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   ASSIGN                                                   !0, 1000
    9     1      > JMP                                                      ->15
   10     2    >   NEW                                              $4      'ReflectionFunction'
          3        SEND_VAL_EX                                              'myfunc'
          4        DO_FCALL                                      0          
          5        ASSIGN                                                   !1, $4
   11     6        INIT_METHOD_CALL                                         !1, 'getParameters'
          7        DO_FCALL                                      0  $7      
          8        ASSIGN                                                   !2, $7
   12     9        INIT_FCALL                                               'var_dump'
         10        FETCH_DIM_R                                      ~9      !2, 0
         11        INIT_METHOD_CALL                                         ~9, 'isArray'
         12        DO_FCALL                                      0  $10     
         13        SEND_VAR                                                 $10
         14        DO_ICALL                                                 
    9    15    >   POST_DEC                                         ~12     !0
         16      > JMPNZ                                                    ~12, ->2
   13    17    > > RETURN                                                   1

Function myfunc:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/OuYLb
function name:  myfunc
number of ops:  2
compiled vars:  !0 = $event
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   RECV                                             !0      
    5     1      > RETURN                                                   null

End of function myfunc

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
150.83 ms | 1395 KiB | 15 Q