PHP stub files automatically extracted from php-src. Used by PHPStan to understand signatures of built-in PHP classes and functions for PHP 8.0+.
#[\Since('x.y')] and #[\Until('x.y')] attributes to track when symbols and signatures were added or removed.Zend/), 69 extensions (ext/), and 6 SAPIs (sapi/).Php8StubsMap) that accepts a $phpVersionId and returns only the symbols available in that PHP version.extractor/extract.php — stubs are never hand-written.phpstan/phpstan-src.$map = new \PHPStan\Php8StubsMap($phpVersionId); // e.g. 80300 for PHP 8.3.0
$map->classes; // array<string, string> — lowercase class name => stub path
$map->functions; // array<string, string> — lowercase function name => stub path
31 followers · starred Mar 2026
746 followers · starred Nov 2020
PHP
100.0%
PHP stub files automatically extracted from php-src. Used by PHPStan to understand signatures of built-in PHP classes and functions for PHP 8.0+.
#[\Since('x.y')] and #[\Until('x.y')] attributes to track when symbols and signatures were added or removed.Zend/), 69 extensions (ext/), and 6 SAPIs (sapi/).Php8StubsMap) that accepts a $phpVersionId and returns only the symbols available in that PHP version.extractor/extract.php — stubs are never hand-written.phpstan/phpstan-src.$map = new \PHPStan\Php8StubsMap($phpVersionId); // e.g. 80300 for PHP 8.3.0
$map->classes; // array<string, string> — lowercase class name => stub path
$map->functions; // array<string, string> — lowercase function name => stub path
31 followers · starred Mar 2026
746 followers · starred Nov 2020
PHP
100.0%