What is the PHP native equivalent of get_included_files() for determining which methods and functions are being used in a script?

To determine which methods and functions are being used in a script in PHP, you can use the `get_defined_functions()` function. This function returns an associative array containing all the defined functions in the script. You can then loop through this array to get the list of functions being used.

$definedFunctions = get_defined_functions();

$usedFunctions = $definedFunctions['user'];

foreach ($usedFunctions as $function) {
    echo $function . "\n";
}