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.
php/php-src: 1,798,608 code lines at commit b9ea38ef639f, counted with tokei-14.0.0 on 2026-10-20. Saved result 951a008dd593fe1a2cc9a88fdec2050c67bda5e43a5f0d080d49d87400a630c4.
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.
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 | 1092 | 1332268 | 1131717 | 80235 | 120316 |
| C Header | 1132 | 679521 | 595330 | 36362 | 47829 |
| PHP | 192 | 56739 | 23518 | 25339 | 7882 |
| C++ | 72 | 19725 | 13812 | 2599 | 3314 |
| Lua | 8 | 8964 | 7234 | 945 | 785 |
| M4 | 81 | 7769 | 6267 | 652 | 850 |
| Lex | 3 | 4153 | 3066 | 416 | 671 |
| Module-Definition | 6 | 3046 | 3039 | 6 | 1 |
| Autoconf | 20 | 3285 | 2868 | 165 | 252 |
| GNU Style Assembly | 44 | 5461 | 2608 | 2266 | 587 |
| Happy | 4 | 2975 | 2607 | 0 | 368 |
| Bitbake | 8 | 2783 | 2457 | 124 | 202 |
| OCaml | 10 | 6768 | 1500 | 5083 | 185 |
| Python | 1 | 1016 | 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 | 2643 | 0 | 1909 | 734 |
| Plain Text | 15 | 12071 | 0 | 12064 | 7 |
Top language (C 62.9%). Generated at .
php/php-src has 2,152,033 total lines, including 1,798,608 code lines, 168,841 comment lines, and 184,584 blank lines.
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.
This OctoCounts report was generated from master at commit b9ea38ef639f on 2026-10-20T18:51:56.365304614Z.
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,798,608 code lines across 27 languages, counted by tokei.