René's URL Explorer Experiment


Title: Improve parser and loader performance by GrahamCampbell · Pull Request #600 · phpdotenv/phpdotenv · GitHub

Open Graph Title: Improve parser and loader performance by GrahamCampbell · Pull Request #600 · phpdotenv/phpdotenv

X Title: Improve parser and loader performance by GrahamCampbell · Pull Request #600 · phpdotenv/phpdotenv

Description: Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically. - Improve parser and loader performance by GrahamCampbell · Pull Request #600 · phpdotenv/phpdotenv

Open Graph Description: This addresses the slowdown reported in #549. The parser and loader accumulated their results with array_merge inside array_reduce, which made loading O(n²) in the number of entries; both now appen...

X Description: This addresses the slowdown reported in #549. The parser and loader accumulated their results with array_merge inside array_reduce, which made loading O(n²) in the number of entries; both now appen...

Opengraph URL: https://github.com/phpdotenv/phpdotenv/pull/600

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.112.3

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:5386736b-7729-b515-d655-2866856a6bd6
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98E2:572F9:3B1693:4FC1EC:6B061C75
html-safe-nonce91e180fbb08cdec2bd3c2f1c3b3f4cf511f2aba597626f275268f6621af5a29c
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEUyOjU3MkY5OjNCMTY5Mzo0RkMxRUM6NkIwNjFDNzUiLCJ2aXNpdG9yX2lkIjoiNDU2Nzg2NTU0MjY0MzY4NjUxNyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac8726aff80029712933e4bedae2c5ac10f095262512155a87df170008c61d70dd
hovercard-subject-tagpull_request:4343580294
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/phpdotenv/phpdotenv/600/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/072e5f854c58018c133c61702d2b432ceb2901fc4a0b476bcf2fb3ef3c0ea70e/phpdotenv/phpdotenv/pull/600
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/072e5f854c58018c133c61702d2b432ceb2901fc4a0b476bcf2fb3ef3c0ea70e/phpdotenv/phpdotenv/pull/600
og:image:altThis addresses the slowdown reported in #549. The parser and loader accumulated their results with array_merge inside array_reduce, which made loading O(n²) in the number of entries; both now appen...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameGrahamCampbell
hostnamegithub.com
expected-hostnamegithub.com
None9a7c5824b75ea2ec5e3de73a483229c7bb9f32a774ffd401f010dd9bacf1483d
turbo-cache-controlno-cache
go-importgithub.com/phpdotenv/phpdotenv git https://github.com/phpdotenv/phpdotenv.git
octolytics-dimension-user_id320763234
octolytics-dimension-user_loginphpdotenv
octolytics-dimension-repository_id7769432
octolytics-dimension-repository_nwophpdotenv/phpdotenv
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id7769432
octolytics-dimension-repository_network_root_nwophpdotenv/phpdotenv
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
releaseb25c3080e84402f75431d8dc7a96b2635219cec7
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/phpdotenv/phpdotenv/pull/600#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpdotenv%2Fphpdotenv%2Fpull%2F600
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%2Fphpdotenv%2Fphpdotenv%2Fpull%2F600
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=phpdotenv%2Fphpdotenv
Reloadhttps://github.com/phpdotenv/phpdotenv/pull/600
Reloadhttps://github.com/phpdotenv/phpdotenv/pull/600
Reloadhttps://github.com/phpdotenv/phpdotenv/pull/600
phpdotenvhttps://github.com/phpdotenv
phpdotenvhttps://github.com/phpdotenv/phpdotenv
Codehttps://github.com/phpdotenv/phpdotenv
Issues1 (1)https://github.com/phpdotenv/phpdotenv/issues
Pull requestshttps://github.com/phpdotenv/phpdotenv/pulls
Actionshttps://github.com/phpdotenv/phpdotenv/actions
Projectshttps://github.com/phpdotenv/phpdotenv/projects
Security and quality4 (4)https://github.com/phpdotenv/phpdotenv/security
Insightshttps://github.com/phpdotenv/phpdotenv/insights
https://github.com/phpdotenv/phpdotenv
GrahamCampbellhttps://github.com/GrahamCampbell
masterhttps://github.com/phpdotenv/phpdotenv/tree/master
parser-performancehttps://github.com/phpdotenv/phpdotenv/tree/parser-performance
Conversationhttps://github.com/phpdotenv/phpdotenv/pull/600
Commits8 (8)https://github.com/phpdotenv/phpdotenv/pull/600/commits
Checkshttps://github.com/phpdotenv/phpdotenv/pull/600/checks
Files changedhttps://github.com/phpdotenv/phpdotenv/pull/600/files
Improve parser and loader performancehttps://github.com/phpdotenv/phpdotenv/pull/600#top
GrahamCampbellhttps://github.com/GrahamCampbell
masterhttps://github.com/phpdotenv/phpdotenv/tree/master
parser-performancehttps://github.com/phpdotenv/phpdotenv/tree/parser-performance
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
Aug 23, 2026https://github.com/phpdotenv/phpdotenv/pull/600#issue-5228839583
#549https://github.com/phpdotenv/phpdotenv/issues/549
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/600
GrahamCampbellhttps://github.com/GrahamCampbell
August 23, 2026 19:53https://github.com/phpdotenv/phpdotenv/pull/600#commits-pushed-d517bf9
https://github.com/GrahamCampbell
Improve loader performancehttps://github.com/phpdotenv/phpdotenv/pull/600/commits/d517bf9840d78df9c5a3391cb4123b6ceda20e7f
d517bf9https://github.com/phpdotenv/phpdotenv/pull/600/commits/d517bf9840d78df9c5a3391cb4123b6ceda20e7f
https://github.com/GrahamCampbell
Avoid quadratic entry accumulation in the parserhttps://github.com/phpdotenv/phpdotenv/pull/600/commits/781055c3447fbac227df221fd4ed76573fe8055b
781055chttps://github.com/phpdotenv/phpdotenv/pull/600/commits/781055c3447fbac227df221fd4ed76573fe8055b
https://github.com/GrahamCampbell
Add a literal fast path to the value parserhttps://github.com/phpdotenv/phpdotenv/pull/600/commits/515bd0d111886f165448333b43b93562b35d26ae
515bd0dhttps://github.com/phpdotenv/phpdotenv/pull/600/commits/515bd0d111886f165448333b43b93562b35d26ae
https://github.com/GrahamCampbell
Consume lexer tokens lazily when parsing valueshttps://github.com/phpdotenv/phpdotenv/pull/600/commits/613f5c8774955c90d8861a55805301c06b08be5e
613f5c8https://github.com/phpdotenv/phpdotenv/pull/600/commits/613f5c8774955c90d8861a55805301c06b08be5e
https://github.com/GrahamCampbell
Simplify splitting entries into partshttps://github.com/phpdotenv/phpdotenv/pull/600/commits/2eb0640e2951fe94c68ee73bdb208b87213abb40
2eb0640https://github.com/phpdotenv/phpdotenv/pull/600/commits/2eb0640e2951fe94c68ee73bdb208b87213abb40
https://github.com/GrahamCampbell
Add an ASCII fast path for name validationhttps://github.com/phpdotenv/phpdotenv/pull/600/commits/fcbbf45b00382325e58538c27ee09135dd1e1886
fcbbf45https://github.com/phpdotenv/phpdotenv/pull/600/commits/fcbbf45b00382325e58538c27ee09135dd1e1886
https://github.com/GrahamCampbell
Avoid closures when wrapping preg resultshttps://github.com/phpdotenv/phpdotenv/pull/600/commits/8a7be69fd2816e7fd7f1d80f78613ec0419b48c7
8a7be69https://github.com/phpdotenv/phpdotenv/pull/600/commits/8a7be69fd2816e7fd7f1d80f78613ec0419b48c7
https://github.com/GrahamCampbell
Tidy up doc commentshttps://github.com/phpdotenv/phpdotenv/pull/600/commits/44bf76ea5f9611443a8d844c7cc89561a543c4e2
44bf76ehttps://github.com/phpdotenv/phpdotenv/pull/600/commits/44bf76ea5f9611443a8d844c7cc89561a543c4e2
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
c86b8f0https://github.com/phpdotenv/phpdotenv/commit/c86b8f0752f23f00e0356d2ccbbac3ffbea1c18a
Aug 23, 2026https://github.com/phpdotenv/phpdotenv/pull/600#event-29880293830
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/600
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
August 24, 2026 17:49https://github.com/phpdotenv/phpdotenv/pull/600#event-29930097682
https://github.co/hiddenchars
https://github.com/phpdotenv/phpdotenv/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%2Fphpdotenv%2Fphpdotenv%2Fpull%2F600
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/600
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/600
https://github.com/GrahamCampbell
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

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlno-cache

Viewport: width=device-width


URLs of crawlers that visited me.