3v4l.org

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

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
175.33 ms | 1395 KiB | 15 Q