# [Pre-RFC] Pure-code source files via .phpc extension

- Thread: https://externals.io/message/131142
- Original archive: https://news-web.php.net/php.internals/131142
- Started by Rowan Tommins [IMSoP] on 2026-06-04T15:22:32+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #131142 — Rowan Tommins [IMSoP] — 2026-06-04T15:22:32+00:00

URL: https://externals.io/message/131142#131142

>
> > […]
>
>It is wrong to assume a PHP file always contains PHP code. Many PHP files only contain HTML just because it is totally valid to do so. Then the question is how to handle pure no-code files.


Rasmus (Lerdorf, PHP's creator) likes to point out that PHP has the shortest "hello world application" of any non-esoteric language:

Hello, World! 


More realistically, I just checked the codebase I work on with "ack" (a grep replacement):

ack --php -L '<\?'

That found 14 files which will be run as PHP but don't contain the string "<?". Some of those are empty files, but about half are "templates" which happen not to have any dynamic content.

So yeah, it would be an entirely unnecessary disruption to perfectly good code.

Regards,

Rowan Tommins
[IMSoP]
