Is there a built-in function in PHP to determine whether a variable is a reference or a directly assigned container?

In PHP, there is no built-in function to determine whether a variable is a reference or a directly assigned container. However, you can use the `debug_zval_dump()` function to check if a variable is a reference or not. This function displays information about a variable including whether it is a reference or not.

$var = 5;
$reference = &$var;

debug_zval_dump($var); // This will output whether $var is a reference or not

// Output will show whether $var is a reference or not