A look at php/php-src: 40.4k stars on GitHub, written primarily in C. The PHP Interpreter
Snapshot summary built from the project's own GitHub metadata — there's no written TopGit review yet. The page will update automatically when a full review is published.
WHY NO REVIEW YET
TopGit writes full reviews for the most-starred, most-requested repositories. This page is a snapshot until then — see the READ ME tab for the original README in full.
PHP is a popular general-purpose scripting language that is especially suited to
web development. Fast, flexible and pragmatic, PHP powers everything from your
blog to the most popular websites in the world.
PHP is distributed under the Modified BSD License
(SPDX-License-Identifier: BSD-3-Clause).
Documentation
The PHP manual is available at php.net/docs.
Installation
Prebuilt packages and binaries
Prebuilt packages and binaries can be used to get up and running fast with PHP.
For Windows, the PHP binaries can be obtained from
windows.php.net. After extracting the archive the
*.exe files are ready to use.
For other systems, see the installation chapter.
Building PHP source code
For Windows, see Build your own PHP on Windows.
For a minimal PHP build from Git, you will need autoconf, bison, and re2c. For
a default build, you will additionally need libxml2 and libsqlite3.
sudo port install autoconf bison re2c libiconv libxml2 sqlite3
Generate configure:
./buildconf
Configure your build. --enable-debug is recommended for development, see
./configure --help for a full list of options.
# For development
./configure --enable-debug
# For production
./configure
Build PHP. To speed up the build, specify the maximum number of jobs using the
-j argument:
make -j4
The number of jobs should usually match the number of available cores, which
can be determined using nproc.
Testing PHP source code
PHP ships with an extensive test suite, the command make test is used after
successful compilation of the sources to run this test suite.
Tests run in parallel by default, using up to 10 detected logical processors.
Set -jN in TEST_PHP_ARGS or TESTS to override the worker count:
make TEST_PHP_ARGS=-j4 test
This runs make test with a maximum of 4 concurrent jobs. Alternatively,
use -j1 to run tests sequentially.
Use the TEST_PHP_ARGS or TESTS variable to test only specific directories:
make TESTS=tests/lang/ test
The qa.php.net site provides more detailed info about
testing and quality assurance.
Installing PHP built from source
After a successful build (and test), PHP may be installed with:
make install
Depending on your permissions and prefix, make install may need superuser
permissions.
PHP extensions
Extensions provide additional functionality on top of PHP. PHP consists of many
essential bundled extensions. Additional extensions can be found on the
PIE Extensions list, and installed with
🥧 PIE, the PHP Installer for Extensions or the
deprecated PHP Extension Community Library - PECL.
Contributing
The PHP source code is located in the Git repository at
github.com/php/php-src. Contributions are most
welcome by forking the repository and sending a pull request.
Discussions are done on GitHub, but depending on the topic can also be relayed
to the official PHP developer mailing list [email protected].
New features require an RFC and must be accepted by the developers. See
Request for comments - RFC and
Voting on PHP features for more information
on the process.
Bug fixes don't require an RFC. If the bug has a GitHub issue, reference it in
the commit message using GH-NNNNNN. Use #NNNNNN for tickets in the old
bugs.php.net bug tracker.
The most recent commit recorded on php/php-src was 2 days ago, based on the GitHub push timestamp. The repository has 8.2k forks — one of the better signals of community interest.
How many stars does php/php-src have?
php/php-src has 40.4k GitHub stars — refresh the page for the live number, or check github.com/php/php-src. TopGit mirrors GitHub's count but does not claim minute-by-minute accuracy.
Is php/php-src open source?
Yes — php/php-src ships under the BSD-3-Clause license, which makes its source code freely readable (and, depending on license terms, forkable and reusable). Source: github.com/php/php-src.
What is php/php-src?
php/php-src (php/php-src) is a C project on GitHub. From the project's own README: The PHP Interpreter
Where do I read more about php/php-src?
This TopGit page is a snapshot — the READ ME tab shows the project's own README content (links stripped, images preserved). The GitHub repository at github.com/php/php-src is the definitive source.
Read full README in the tab above.
Curious whether php-src is right for you?
Let ChatGPT, Claude, or Perplexity look into it — click below and see what AI actually says about php-src.