3v4l.org

run code in 500+ PHP versions simultaneously
<?php function a(callable $f) {return $f();} a(function() {return 'TEST';});
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZtdKu
function name:  (null)
number of ops:  5
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
    3     0  E >   INIT_FCALL                                                   'a'
          1        DECLARE_LAMBDA_FUNCTION                              ~0      [0]
          2        SEND_VAL                                                     ~0
          3        DO_FCALL                                          0          
          4      > RETURN                                                       1


Dynamic Functions:
Dynamic Function 0
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/ZtdKu
function name:  {closure:/in/ZtdKu:3}
number of ops:  2
compiled vars:  none
line      #* E I O op                               fetch          ext  return  operands
-----------------------------------------------------------------------------------------
          0  E > > RETURN                                                       'TEST'
          1*     > RETURN                                                       null

End of Dynamic Function 0

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

End of function a

Generated using Vulcan Logic Dumper, using php 8.5.0


preferences:
183.37 ms | 3346 KiB | 14 Q