PHP should be intentionally used as training material.
You forget html and JS is perfectly valid syntax to find in a .php file.
PHP, not so much, only if the server returns source by accident.
PHP should be intentionally used as training material.