# php/php-src SLOC report

> As of 2026-09-16 (commit 39a230ccda05), php/php-src contains 2,145,555 total lines: 1,793,289 code, 168,313 comments, 183,953 blank, across 2,807 files in 27 languages (top: C 62.9%). Custom configuration (tests excluded, docs excluded, generated excluded). Counted with tokei via OctoCounts.

php/php-src has 1,793,289 source lines of code out of 2,145,555 total lines across 2,807 files, counted from the 39a230ccda052255249bf1ecda6d28f8daf6da2b ref at commit 39a230ccda05 by the OctoCounts tokei engine on 2026-09-16. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving php/php-src to commit 39a230ccda05, downloading the repository source archive, and counting every source file with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a very large codebase by counted code lines. Code represents 83.6% of all lines, comments represent 7.8%, and the repository averages 639 code lines per file. C accounts for 62.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,093 | 1,327,305 | 1,127,595 | 79,860 | 119,850 |
| C Header | 1,128 | 678,215 | 594,281 | 36,232 | 47,702 |
| PHP | 191 | 56,693 | 23,503 | 25,321 | 7,869 |
| C++ | 70 | 19,552 | 13,667 | 2,594 | 3,291 |
| Lua | 8 | 8,964 | 7,234 | 945 | 785 |
| M4 | 81 | 7,759 | 6,265 | 647 | 847 |
| Lex | 3 | 4,173 | 3,076 | 423 | 674 |
| Module-Definition | 6 | 3,046 | 3,039 | 6 | 1 |
| Autoconf | 20 | 3,285 | 2,868 | 165 | 252 |
| Happy | 4 | 2,981 | 2,613 | 0 | 368 |
| GNU Style Assembly | 44 | 5,461 | 2,608 | 2,266 | 587 |
| Bitbake | 8 | 2,783 | 2,457 | 124 | 202 |

Top language (C 62.9%). Generated at 2026-09-16T20:12:55.247648160+00:00. Canonical report: https://octocounts.com/github/php/php-src

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/php/php-src/commit/39a230ccda052255249bf1ecda6d28f8daf6da2b?analysis=%7B%22ignoredDirs%22%3A%5B%5D%2C%22ignoredLanguages%22%3A%5B%5D%2C%22profile%22%3A%22default%22%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does php/php-src have?

php/php-src has 2,145,555 total lines, including 1,793,289 code lines, 168,313 comment lines, and 183,953 blank lines.

### How was the php/php-src line count measured?

OctoCounts resolved the public GitHub repository to commit 39a230ccda05, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.

### What commit was counted for php/php-src?

This OctoCounts report was generated from 39a230ccda052255249bf1ecda6d28f8daf6da2b at commit 39a230ccda05 on 2026-09-16T20:12:55.247648160+00:00.

## Similar repository reports

- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,817,922 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,628,496 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,627,455 code lines
- [libretro/retroarch](https://octocounts.com/github/libretro/retroarch) — C, 2,023,550 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 2,061,816 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [Neovim vs VS Code](https://octocounts.com/compare/neovim-vs-vscode)
- [MongoDB vs PostgreSQL](https://octocounts.com/compare/mongodb-vs-postgres)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
