3v4l.org

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

Function tocall:
Finding entry points
Branch analysis from position: 0
1 jumps found. (Code = 62) Position 1 = -2
filename:       /in/cTsML
function name:  toCall
number of ops:  2
compiled vars:  none
line      #* E I O op                           fetch          ext  return  operands
-------------------------------------------------------------------------------------
    3     0  E >   ECHO                                                     'called'
    4     1      > RETURN                                                   null

End of function tocall

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

End of function fromcall

Generated using Vulcan Logic Dumper, using php 8.0.0


preferences:
142.44 ms | 1397 KiB | 14 Q