René's URL Explorer Experiment


Title: Make closure signature and static variable inference cheaper, fix benchmark regressions by ondrejmirtes · Pull Request #6623 · phpstan/phpstan-src · GitHub

Open Graph Title: Make closure signature and static variable inference cheaper, fix benchmark regressions by ondrejmirtes · Pull Request #6623 · phpstan/phpstan-src

X Title: Make closure signature and static variable inference cheaper, fix benchmark regressions by ondrejmirtes · Pull Request #6623 · phpstan/phpstan-src

Description: PHPStan's source code. This is where development happens. Check https://github.com/phpstan/phpstan for the distribution repository. - Make closure signature and static variable inference cheaper, fix benchmark regressions by ondrejmirtes · Pull Request #6623 · phpstan/phpstan-src

Open Graph Description: Speeds up the two bleeding-edge features added in the last days, closureSignaturesFromUsages and staticVariablesFromUsages. On Slevomat they cost about +5% user CPU over the toggles being off. Comm...

X Description: Speeds up the two bleeding-edge features added in the last days, closureSignaturesFromUsages and staticVariablesFromUsages. On Slevomat they cost about +5% user CPU over the toggles being off. Comm...

Opengraph URL: https://github.com/phpstan/phpstan-src/pull/6623

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:5fe18704-4670-3932-e763-202219039475
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCFAC:C2718:91B7FD:BE5E26:6B00E10A
html-safe-nonce0a757bf411378797f6f1d37026968390a88c34858dbf36afeaabda3976cb82dc
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkFDOkMyNzE4OjkxQjdGRDpCRTVFMjY6NkIwMEUxMEEiLCJ2aXNpdG9yX2lkIjoiNjE2MjYxMTQ3OTc0NTk3ODYzNCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac77b8bdd6e02919dcf508543ad036e890d2e987aa81cbe00a4d0e0b0072bb8f4c
hovercard-subject-tagpull_request:4662252260
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/phpstan/phpstan-src/6623/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/1ec8d9fd6a7c061c6938403c9622a3761f0e9ee790950eeac1e4cad24cc01af2/phpstan/phpstan-src/pull/6623
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/1ec8d9fd6a7c061c6938403c9622a3761f0e9ee790950eeac1e4cad24cc01af2/phpstan/phpstan-src/pull/6623
og:image:altSpeeds up the two bleeding-edge features added in the last days, closureSignaturesFromUsages and staticVariablesFromUsages. On Slevomat they cost about +5% user CPU over the toggles being off. Comm...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameondrejmirtes
hostnamegithub.com
expected-hostnamegithub.com
None043c3f30fbcbe2c6c8e729e10cbbbc90c406546f9fbbb67c648d38f6b7d16daf
turbo-cache-controlno-cache
go-importgithub.com/phpstan/phpstan-src git https://github.com/phpstan/phpstan-src.git
octolytics-dimension-user_id16435710
octolytics-dimension-user_loginphpstan
octolytics-dimension-repository_id219334214
octolytics-dimension-repository_nwophpstan/phpstan-src
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id219334214
octolytics-dimension-repository_network_root_nwophpstan/phpstan-src
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release5425dc24e8bd8d6fca9641a12afc984825a43875
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpstan/phpstan-src/pull/6623#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6623
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6623
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=phpstan%2Fphpstan-src
Reloadhttps://github.com/phpstan/phpstan-src/pull/6623
Reloadhttps://github.com/phpstan/phpstan-src/pull/6623
Reloadhttps://github.com/phpstan/phpstan-src/pull/6623
phpstanhttps://github.com/phpstan
phpstan-srchttps://github.com/phpstan/phpstan-src
Codehttps://github.com/phpstan/phpstan-src
Pull requests186 (186)https://github.com/phpstan/phpstan-src/pulls
Actionshttps://github.com/phpstan/phpstan-src/actions
Security and qualityhttps://github.com/phpstan/phpstan-src/security
Insightshttps://github.com/phpstan/phpstan-src/insights
https://github.com/phpstan/phpstan-src
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
closure-inference-perfhttps://github.com/phpstan/phpstan-src/tree/closure-inference-perf
Conversationhttps://github.com/phpstan/phpstan-src/pull/6623
Commits9 (9)https://github.com/phpstan/phpstan-src/pull/6623/commits
Checkshttps://github.com/phpstan/phpstan-src/pull/6623/checks
Files changedhttps://github.com/phpstan/phpstan-src/pull/6623/files
Make closure signature and static variable inference cheaper, fix benchmark regressionshttps://github.com/phpstan/phpstan-src/pull/6623#top
ondrejmirteshttps://github.com/ondrejmirtes
2.3.xhttps://github.com/phpstan/phpstan-src/tree/2.3.x
closure-inference-perfhttps://github.com/phpstan/phpstan-src/tree/closure-inference-perf
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Sep 28, 2026https://github.com/phpstan/phpstan-src/pull/6623#issue-5612893798
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6623
#6121https://github.com/phpstan/phpstan-src/pull/6121
dda82d9https://github.com/phpstan/phpstan-src/commit/dda82d97fb6958a0b87ac77e7b4987b972636f78
Claude Codehttps://claude.com/claude-code
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6623
ondrejmirteshttps://github.com/ondrejmirtes
September 28, 2026 10:39https://github.com/phpstan/phpstan-src/pull/6623#commits-pushed-b825947
https://github.com/ondrejmirtes
https://github.com/claude
Collect the markers of an array literal or union once for all its itemshttps://github.com/phpstan/phpstan-src/pull/6623/commits/b82594723c7f2e63635f1a490b5c3a61b6e7ca2f
b825947https://github.com/phpstan/phpstan-src/pull/6623/commits/b82594723c7f2e63635f1a490b5c3a61b6e7ca2f
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Do not build the value type of an array sent to plain mixedhttps://github.com/phpstan/phpstan-src/pull/6623/commits/4bbf5c7976991bf1314e40c11875ca22b63f7b7d
4bbf5c7https://github.com/phpstan/phpstan-src/pull/6623/commits/4bbf5c7976991bf1314e40c11875ca22b63f7b7d
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Walk a by-ref closure's body once per state it is invoked fromhttps://github.com/phpstan/phpstan-src/pull/6623/commits/766dcc4a6703d631f1cbffc23ada34558c66c074
766dcc4https://github.com/phpstan/phpstan-src/pull/6623/commits/766dcc4a6703d631f1cbffc23ada34558c66c074
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Replay the last walk inferring static variables as the second passhttps://github.com/phpstan/phpstan-src/pull/6623/commits/0e5c2643c138b113e14771d8d0351bfa6b61a643
0e5c264https://github.com/phpstan/phpstan-src/pull/6623/commits/0e5c2643c138b113e14771d8d0351bfa6b61a643
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Run the benchmark on PHP 8.5 only againhttps://github.com/phpstan/phpstan-src/pull/6623/commits/38d90eab972b8eccf8b5f449b62ed33e4e197d1a
38d90eahttps://github.com/phpstan/phpstan-src/pull/6623/commits/38d90eab972b8eccf8b5f449b62ed33e4e197d1a
#6121https://github.com/phpstan/phpstan-src/pull/6121
#6121https://github.com/phpstan/phpstan-src/pull/6121
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Skip keys-superset checks of arrays differing in constant scalar valueshttps://github.com/phpstan/phpstan-src/pull/6623/commits/b2bd56c268a948e9b29ae08500a409832cab5f8d
b2bd56chttps://github.com/phpstan/phpstan-src/pull/6623/commits/b2bd56c268a948e9b29ae08500a409832cab5f8d
e606ca2https://github.com/phpstan/phpstan-src/commit/e606ca20e34cdce6dd8ea2327c6869297f1db3cf
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Intersect finite benevolent unions by identity toohttps://github.com/phpstan/phpstan-src/pull/6623/commits/d97ab9b9f3d3583084fee53c967150bf043b7cd2
d97ab9bhttps://github.com/phpstan/phpstan-src/pull/6623/commits/d97ab9b9f3d3583084fee53c967150bf043b7cd2
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
https://github.com/claude
Answer the isset() conjunction fold's left operand once per askhttps://github.com/phpstan/phpstan-src/pull/6623/commits/6888887daf22e2b0f8701e8ab6ce60cbe9cdb684
6888887https://github.com/phpstan/phpstan-src/pull/6623/commits/6888887daf22e2b0f8701e8ab6ce60cbe9cdb684
https://claude.ai/code/session_01Y5roddukgqaSAB2BT765UXhttps://claude.ai/code/session_01Y5roddukgqaSAB2BT765UX
https://github.com/ondrejmirtes
Bump expected turbo versionhttps://github.com/phpstan/phpstan-src/pull/6623/commits/7c94037a92949c3a722cb800c6b6ed39744fd4a6
7c94037https://github.com/phpstan/phpstan-src/pull/6623/commits/7c94037a92949c3a722cb800c6b6ed39744fd4a6
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
force-pushedhttps://github.com/phpstan/phpstan-src/compare/750402061dc7a7eafb2dca2255848d7a4a64bea3..7c94037a92949c3a722cb800c6b6ed39744fd4a6
7504020https://github.com/phpstan/phpstan-src/commit/750402061dc7a7eafb2dca2255848d7a4a64bea3
7c94037https://github.com/phpstan/phpstan-src/commit/7c94037a92949c3a722cb800c6b6ed39744fd4a6
Compare https://github.com/phpstan/phpstan-src/compare/750402061dc7a7eafb2dca2255848d7a4a64bea3..7c94037a92949c3a722cb800c6b6ed39744fd4a6
September 28, 2026 11:31https://github.com/phpstan/phpstan-src/pull/6623#event-31987398073
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
Sep 28, 2026https://github.com/phpstan/phpstan-src/pull/6623#event-31987408535
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
7c94037https://github.com/phpstan/phpstan-src/commit/7c94037a92949c3a722cb800c6b6ed39744fd4a6
Sep 28, 2026https://github.com/phpstan/phpstan-src/pull/6623#event-31993344621
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6623
https://github.com/ondrejmirtes
ondrejmirteshttps://github.com/ondrejmirtes
September 28, 2026 12:57https://github.com/phpstan/phpstan-src/pull/6623#event-31993347093
liamducketthttps://github.com/liamduckett
Sep 28, 2026 https://github.com/phpstan/phpstan-src/pull/6623#ref-commit-8a619a5
https://github.com/phpstan-bot
https://github.com/ondrejmirtes
Add regression test forhttps://github.com/liamduckett/phpstan-src/commit/8a619a5b881e71dc4318dd5af9e642bfc18bacef
phpstan#6623https://github.com/phpstan/phpstan-src/pull/6623
8a619a5https://github.com/liamduckett/phpstan-src/commit/8a619a5b881e71dc4318dd5af9e642bfc18bacef
phpstan/phpstan#6623https://github.com/phpstan/phpstan/issues/6623
ondrejmirteshttps://github.com/ondrejmirtes
Nov 14, 2026 https://github.com/phpstan/phpstan-src/pull/6623#ref-commit-1b215b9
https://github.com/ondrejmirtes
Add microbenchmarks of the analyser and PHPDoc performance fixes of 2026https://github.com/phpstan/phpstan-src/commit/1b215b9312d7a70ff0a04562edc8c3bc3080a2b6
1b215b9https://github.com/phpstan/phpstan-src/commit/1b215b9312d7a70ff0a04562edc8c3bc3080a2b6
#6623https://github.com/phpstan/phpstan-src/pull/6623
https://github.co/hiddenchars
https://github.com/phpstan/phpstan-src/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpstan%2Fphpstan-src%2Fpull%2F6623
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6623
Please reload this pagehttps://github.com/phpstan/phpstan-src/pull/6623
https://github.com/ondrejmirtes
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.