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.
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 | 1089 | 1321213 | 1122828 | 79457 | 118928 |
| C Header | 1125 | 676678 | 593311 | 36048 | 47319 |
| PHP | 190 | 55915 | 22996 | 25160 | 7759 |
| C++ | 70 | 19248 | 13418 | 2591 | 3239 |
| Lua | 8 | 8964 | 7234 | 945 | 785 |
| M4 | 80 | 7671 | 6198 | 635 | 838 |
| Lex | 3 | 4174 | 3077 | 423 | 674 |
| Autoconf | 20 | 3285 | 2868 | 165 | 252 |
| Happy | 4 | 2986 | 2617 | 0 | 369 |
| GNU Style Assembly | 44 | 5461 | 2608 | 2266 | 587 |
| Bitbake | 8 | 2783 | 2457 | 124 | 202 |
| Module-Definition | 5 | 1842 | 1835 | 6 | 1 |
Top language (C 62.9%). Generated at 2026-07-22T16:33:21.515987478+00:00.
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.