# php/php-src SLOC report

> php/php-src: 1,798,608 code lines at commit b9ea38ef639f, counted with tokei-14.0.0 on 2026-10-20. Saved result 951a008dd593fe1a2cc9a88fdec2050c67bda5e43a5f0d080d49d87400a630c4.

php/php-src has 1,798,608 source lines of code out of 2,152,033 total lines across 2,812 files, counted from the master ref at commit b9ea38ef639f by the OctoCounts tokei engine on 2026-10-20. 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 b9ea38ef639f, 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 640 code lines per file. C accounts for 62.9% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C | 1,092 | 1,332,268 | 1,131,717 | 80,235 | 120,316 |
| C Header | 1,132 | 679,521 | 595,330 | 36,362 | 47,829 |
| PHP | 192 | 56,739 | 23,518 | 25,339 | 7,882 |
| C++ | 72 | 19,725 | 13,812 | 2,599 | 3,314 |
| Lua | 8 | 8,964 | 7,234 | 945 | 785 |
| M4 | 81 | 7,769 | 6,267 | 652 | 850 |
| Lex | 3 | 4,153 | 3,066 | 416 | 671 |
| Module-Definition | 6 | 3,046 | 3,039 | 6 | 1 |
| Autoconf | 20 | 3,285 | 2,868 | 165 | 252 |
| GNU Style Assembly | 44 | 5,461 | 2,608 | 2,266 | 587 |
| Happy | 4 | 2,975 | 2,607 | 0 | 368 |
| Bitbake | 8 | 2,783 | 2,457 | 124 | 202 |
| OCaml | 10 | 6,768 | 1,500 | 5,083 | 185 |
| Python | 1 | 1,016 | 808 | 16 | 192 |
| Shell | 10 | 996 | 696 | 104 | 196 |
| Assembly | 7 | 907 | 326 | 479 | 102 |
| GLSL | 19 | 393 | 284 | 51 | 58 |
| D | 2 | 156 | 128 | 19 | 9 |
| JSON | 55 | 126 | 120 | 0 | 6 |
| AWK | 1 | 79 | 69 | 4 | 6 |
| Batch | 2 | 64 | 52 | 0 | 12 |
| BASH | 1 | 54 | 43 | 2 | 9 |
| ReStructuredText | 2 | 36 | 28 | 0 | 8 |
| Forge Config | 1 | 24 | 20 | 1 | 3 |
| YAML | 1 | 11 | 11 | 0 | 0 |
| Markdown | 23 | 2,643 | 0 | 1,909 | 734 |
| Plain Text | 15 | 12,071 | 0 | 12,064 | 7 |

Top language (C 62.9%). Generated at 2026-10-20T18:51:56.365304614Z. Canonical report: https://octocounts.com/github/php/php-src/commit/b9ea38ef639f5b9bbb67d27834be9c52b922520b?reportId=951a008dd593fe1a2cc9a88fdec2050c67bda5e43a5f0d080d49d87400a630c4&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

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

## Report FAQ

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

php/php-src has 2,152,033 total lines, including 1,798,608 code lines, 168,841 comment lines, and 184,584 blank lines.

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

OctoCounts resolved the public GitHub repository to commit b9ea38ef639f, 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 master at commit b9ea38ef639f on 2026-10-20T18:51:56.365304614Z.

## Similar repository reports

- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,634,582 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,632,075 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,584,680 code lines
- [tsirysndr/rockboxd](https://octocounts.com/github/tsirysndr/rockboxd) — C, 2,063,553 code lines
- [xeonliu/FFmpeg-AVSPlus](https://octocounts.com/github/xeonliu/FFmpeg-AVSPlus) — C, 1,504,588 code lines
- [qemu/qemu](https://octocounts.com/github/qemu/qemu) — C, 1,376,572 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)
