# php/php-src SLOC report

> As of 2026-07-22 (commit 83eea8793043), php/php-src contains 2,135,531 total lines: 1,785,546 code, 167,514 comments, 182,471 blank, across 2,795 files in 27 languages (top: C 62.9%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving php/php-src to commit 83eea8793043, 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,089 | 1,321,213 | 1,122,828 | 79,457 | 118,928 |
| C Header | 1,125 | 676,678 | 593,311 | 36,048 | 47,319 |
| PHP | 190 | 55,915 | 22,996 | 25,160 | 7,759 |
| C++ | 70 | 19,248 | 13,418 | 2,591 | 3,239 |
| Lua | 8 | 8,964 | 7,234 | 945 | 785 |
| M4 | 80 | 7,671 | 6,198 | 635 | 838 |
| Lex | 3 | 4,174 | 3,077 | 423 | 674 |
| Autoconf | 20 | 3,285 | 2,868 | 165 | 252 |
| Happy | 4 | 2,986 | 2,617 | 0 | 369 |
| GNU Style Assembly | 44 | 5,461 | 2,608 | 2,266 | 587 |
| Bitbake | 8 | 2,783 | 2,457 | 124 | 202 |
| Module-Definition | 5 | 1,842 | 1,835 | 6 | 1 |

Top language (C 62.9%). Generated at 2026-07-22T16:33:21.515987478+00:00. Canonical report: https://octocounts.com/github/php/php-src

## Report FAQ

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

php/php-src has 2,135,531 total lines, including 1,785,546 code lines, 167,514 comment lines, and 182,471 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 83eea8793043, 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 83eea8793043 on 2026-07-22T16:33:21.515987478+00:00.

## Similar repository reports

- [bminor/glibc](https://octocounts.com/github/bminor/glibc) — C, 1,677,401 code lines
- [plan9foundation/plan9](https://octocounts.com/github/plan9foundation/plan9) — C, 1,659,936 code lines
- [postgres/postgres](https://octocounts.com/github/postgres/postgres) — C, 1,635,077 code lines
- [python/cpython](https://octocounts.com/github/python/cpython) — C, 1,623,307 code lines
- [tsirysndr/rockbox-zig](https://octocounts.com/github/tsirysndr/rockbox-zig) — C, 1,965,584 code lines
- [FFmpeg/FFmpeg](https://octocounts.com/github/FFmpeg/FFmpeg) — C, 1,564,504 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
