Get the interpolated variable names from a string.

Check if '$' is followed by a valid variable name, and that it is not preceded by an escape sequence.

@since 0.9.0

@param string $string The contents of a T_DOUBLE_QUOTED_STRING or T_HEREDOC token.

@return array Variable names (without '$' sigil).