php/php-src

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.

php/php-src: 1,803,435 code lines at commit e51fa6acb52e, counted with tokei-15.0.0 on 2026-11-16. Saved result 403fd8bb4a74e4e3978a150c4ba309904fa03fce517b1d092d9c0c5268d083fd.

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.

Repository size insights

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.

LanguageFilesLinesCodeCommentsBlanks
C10951336793113535280603120838
C Header11356805415960753645348013
PHP1925682323535253877901
C++73201831418525983400
Lua889867252946788
M48177876283654850
Lex341533066416671
Module-Definition63046303961
Autoconf2032842867165252
Happy4300426350369
GNU Style Assembly44546126082266587
Bitbake827832457124202
OCaml10697315205268185
Python1101680816192
Shell10983685103195
Assembly7907326479102
GLSL193802715158
D2156128199
JSON5512612006
AWK1796946
Batch26452012
BASH1544329
ReStructuredText2362808
Forge Config1242013
YAML1111100
Markdown23267001930740
Plain Text15120690120627

Top language: C 63.0%. Generated on .

Counting rules and retention

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.

Reproduce this report

Reproduce this exact report and configuration.

Report FAQ

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

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.

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

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.

What commit was counted for php/php-src?

This OctoCounts report was generated from master at commit e51fa6acb52e on November 16, 2026.

Similar repository reports

Other public repositories with an OctoCounts report, ranked by top language and code size similarity:

Play the growth animation for php/php-src on this page — 1,803,435 code lines across 27 languages, counted by tokei.