3v4l.org

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

Function a:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/d3CKD
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:
148.05 ms | 1394 KiB | 15 Q