I'm new to PHP and I'm just starting to explore its features and capabilities. I've recently come across the concept of attributes in PHP, and I'm quite intrigued by it.
From what I understand, attributes allow us to add metadata or extra information to classes, properties, and methods. It seems like a really useful feature, but I'm unsure about which PHP versions support it.
So, my question is: Are attributes supported in all PHP versions, or are they specific to certain versions? I don't want to accidentally use a feature that is only available in newer versions and end up experiencing compatibility issues with older PHP setups.
If anyone could shed some light on this, I would greatly appreciate it.