php/php-src has 1,803,435 source lines of code out of 2,158,392 total lines across 2,819 files, counted with tokei from the master ref at commit e51fa6acb52e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit e51fa6acb52e), php/php-src contains 2,158,392 total lines: 1,803,435 code, 169,553 comments, 185,404 blank, across 2,819 files in 27 languages (top language: C 63.0%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving php/php-src to commit e51fa6acb52e, downloading the repository source archive, and counting files selected by the effective rules 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; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a very large codebase by counted code lines. Code represents 83.6% of all lines, comments represent 7.9%, and the repository averages 640 code lines per file. C accounts for 63.0% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C | 1095 | 1336793 | 1135352 | 80603 | 120838 |
| C Header | 1135 | 680541 | 596075 | 36453 | 48013 |
| PHP | 192 | 56823 | 23535 | 25387 | 7901 |
| C++ | 73 | 20183 | 14185 | 2598 | 3400 |
| Lua | 8 | 8986 | 7252 | 946 | 788 |
| M4 | 81 | 7787 | 6283 | 654 | 850 |
| Lex | 3 | 4153 | 3066 | 416 | 671 |
| Module-Definition | 6 | 3046 | 3039 | 6 | 1 |
| Autoconf | 20 | 3284 | 2867 | 165 | 252 |
| Happy | 4 | 3004 | 2635 | 0 | 369 |
| GNU Style Assembly | 44 | 5461 | 2608 | 2266 | 587 |
| Bitbake | 8 | 2783 | 2457 | 124 | 202 |
Top language: C 63.0%. Generated on .
php/php-src: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
php/php-src has 1,803,435 lines of code, plus 169,553 comment lines and 185,404 blank lines, for 2,158,392 total lines at commit e51fa6acb52e on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit e51fa6acb52e, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from master at commit e51fa6acb52e on November 16, 2026.
Play the growth animation for php/php-src on this page — 1,803,435 code lines across 27 languages, counted by tokei.