.php
2 claimants
2 primary
0 secondary
shared primary (2)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
417.7M
total occurrences
108.5M
since 2019 (26.0%)
1970–2023
years active
Case variants in archive: .php (417.7M), .PHP (15.7K), .Php (867), .PhP (44), .pHp (23), .phP (22), .pHP (6), .PHp (5) — aggregated above.
Attribution status
This extension is attributed to Hack; PHP; PHP; PHP as primary by 4 authoritative claims.
Claimants (5)
Languages that list
.php among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| Hack | pygments | primary |
| PHP | linguist | primary |
| PHP | pygments | primary |
| PHP | wikidata | primary |
| Hack | linguist | secondary |
Wikidata says… (7)
File formats, image formats, audio codecs and other non-PL
entities that claim
.php on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| American Greetings Project 10-23 Q89029185 file format | file format | — | — | — | Use as new PL ↗ |
| Digital Image Publishing File Q119157250 file format | file format | — | — | — | Use as new PL ↗ |
| Easy Prints file Q111648750 file format | file format | — | — | — | Use as new PL ↗ |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a
.php file actually is.| Rule | Predicts | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.php/0 | Hack | predicates | [{"kind": "any", "regexes": ["<\\?hh"]}] |
h/linguist/.php/1 | PHP | predicates | [{"kind": "any", "regexes": ["<\\?[^h]"]}] |
SWH-mined examples (0)
No archived examples for .php in our local mirror yet.