3v4l.org

run code in 300+ PHP versions simultaneously
<?php function test ($func) { $func('moo'); } function aFunctionToPass ($str) { echo $str; } test('aFunctionToPass');
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/82tBc
function name:  (null)
number of ops:  4
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
   11     0  E >   INIT_FCALL                                               'test'
          1        SEND_VAL                                                 'aFunctionToPass'
          2        DO_FCALL                                      0          
          3      > RETURN                                                   1

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

End of function test

Function afunctiontopass:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/82tBc
function name:  aFunctionToPass
number of ops:  3
compiled vars:  !0 = $str
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    7     0  E >   RECV                                             !0      
    8     1        ECHO                                                     !0
    9     2      > RETURN                                                   null

End of function afunctiontopass

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
141.14 ms | 1402 KiB | 14 Q