René's URL Explorer Experiment


Title: Remove quadratic value parsing by GrahamCampbell · Pull Request #604 · phpdotenv/phpdotenv · GitHub

Open Graph Title: Remove quadratic value parsing by GrahamCampbell · Pull Request #604 · phpdotenv/phpdotenv

X Title: Remove quadratic value parsing by GrahamCampbell · Pull Request #604 · phpdotenv/phpdotenv

Description: Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically. - Remove quadratic value parsing by GrahamCampbell · Pull Request #604 · phpdotenv/phpdotenv

Open Graph Description: The value parser rebuilt an immutable value object once per lexer token, copying the whole accumulated string and recomputing its length each time, which is quadratic in the length of a value compo...

X Description: The value parser rebuilt an immutable value object once per lexer token, copying the whole accumulated string and recomputing its length each time, which is quadratic in the length of a value compo...

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

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:b32b0ea0-3fa2-721e-639f-f15cd69e1e32
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idB366:3F83D3:471FDC:5CADCA:6B061C70
html-safe-nonce5200ba6896dbdf40184e1e0ac882102dc8c18ca37394fce7e6ae29cf0a1b7f65
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzY2OjNGODNEMzo0NzFGREM6NUNBRENBOjZCMDYxQzcwIiwidmlzaXRvcl9pZCI6IjkwMTEzNDQzODEwMTM1MzE3NjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac5c0c83f888f5c5e7e88a623d5d8bd0e9f345ffd16c4d01b99e4f5d1569ae7548
hovercard-subject-tagpull_request:4344449696
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/604/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/db39cb99c92fbd4065651e93f59206d6b0cc5d160efdcc71192a7a8ed1d68fec/phpdotenv/phpdotenv/pull/604
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/db39cb99c92fbd4065651e93f59206d6b0cc5d160efdcc71192a7a8ed1d68fec/phpdotenv/phpdotenv/pull/604
og:image:altThe value parser rebuilt an immutable value object once per lexer token, copying the whole accumulated string and recomputing its length each time, which is quadratic in the length of a value compo...
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/604#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fphpdotenv%2Fphpdotenv%2Fpull%2F604
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%2F604
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/604
Reloadhttps://github.com/phpdotenv/phpdotenv/pull/604
Reloadhttps://github.com/phpdotenv/phpdotenv/pull/604
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
perf/linear-value-parsinghttps://github.com/phpdotenv/phpdotenv/tree/perf/linear-value-parsing
Conversationhttps://github.com/phpdotenv/phpdotenv/pull/604
Commits2 (2)https://github.com/phpdotenv/phpdotenv/pull/604/commits
Checkshttps://github.com/phpdotenv/phpdotenv/pull/604/checks
Files changedhttps://github.com/phpdotenv/phpdotenv/pull/604/files
Remove quadratic value parsinghttps://github.com/phpdotenv/phpdotenv/pull/604#top
GrahamCampbellhttps://github.com/GrahamCampbell
masterhttps://github.com/phpdotenv/phpdotenv/tree/master
perf/linear-value-parsinghttps://github.com/phpdotenv/phpdotenv/tree/perf/linear-value-parsing
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
Aug 24, 2026https://github.com/phpdotenv/phpdotenv/pull/604#issue-5229949088
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/604
#603https://github.com/phpdotenv/phpdotenv/pull/603
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/604
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
Aug 24, 2026 https://github.com/phpdotenv/phpdotenv/pull/604#ref-pullrequest-5229949893
Resolve nested variables with fewer copies #605 https://github.com/phpdotenv/phpdotenv/pull/605
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/a395ee19d66b4f37e32c0a69973f129f3e4451c9..c780d5ab5297ebdb9a369c37b16bce74018a736e
a395ee1https://github.com/phpdotenv/phpdotenv/commit/a395ee19d66b4f37e32c0a69973f129f3e4451c9
c780d5ahttps://github.com/phpdotenv/phpdotenv/commit/c780d5ab5297ebdb9a369c37b16bce74018a736e
Compare https://github.com/phpdotenv/phpdotenv/compare/a395ee19d66b4f37e32c0a69973f129f3e4451c9..c780d5ab5297ebdb9a369c37b16bce74018a736e
August 24, 2026 01:01https://github.com/phpdotenv/phpdotenv/pull/604#event-29886105670
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/488f91e4bfc29420f7e722d83ae8025ff604e495..d0a2385d1d787d28a603d2126963810a43bd4b55
488f91ehttps://github.com/phpdotenv/phpdotenv/commit/488f91e4bfc29420f7e722d83ae8025ff604e495
d0a2385https://github.com/phpdotenv/phpdotenv/commit/d0a2385d1d787d28a603d2126963810a43bd4b55
Compare https://github.com/phpdotenv/phpdotenv/compare/488f91e4bfc29420f7e722d83ae8025ff604e495..d0a2385d1d787d28a603d2126963810a43bd4b55
August 24, 2026 10:43https://github.com/phpdotenv/phpdotenv/pull/604#event-29907125098
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/c780d5ab5297ebdb9a369c37b16bce74018a736e..3b1071d550c2b9090e6d2225afec0f42a8a8d6da
c780d5ahttps://github.com/phpdotenv/phpdotenv/commit/c780d5ab5297ebdb9a369c37b16bce74018a736e
3b1071dhttps://github.com/phpdotenv/phpdotenv/commit/3b1071d550c2b9090e6d2225afec0f42a8a8d6da
Compare https://github.com/phpdotenv/phpdotenv/compare/c780d5ab5297ebdb9a369c37b16bce74018a736e..3b1071d550c2b9090e6d2225afec0f42a8a8d6da
August 24, 2026 10:43https://github.com/phpdotenv/phpdotenv/pull/604#event-29907151397
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/d0a2385d1d787d28a603d2126963810a43bd4b55..8fdf977e2aedb69518ece04dbba5542570a3c9d7
d0a2385https://github.com/phpdotenv/phpdotenv/commit/d0a2385d1d787d28a603d2126963810a43bd4b55
8fdf977https://github.com/phpdotenv/phpdotenv/commit/8fdf977e2aedb69518ece04dbba5542570a3c9d7
Compare https://github.com/phpdotenv/phpdotenv/compare/d0a2385d1d787d28a603d2126963810a43bd4b55..8fdf977e2aedb69518ece04dbba5542570a3c9d7
August 24, 2026 13:22https://github.com/phpdotenv/phpdotenv/pull/604#event-29915122456
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/3b1071d550c2b9090e6d2225afec0f42a8a8d6da..550299f2ae572dd07da80e76230da0291adb6948
3b1071dhttps://github.com/phpdotenv/phpdotenv/commit/3b1071d550c2b9090e6d2225afec0f42a8a8d6da
550299fhttps://github.com/phpdotenv/phpdotenv/commit/550299f2ae572dd07da80e76230da0291adb6948
Compare https://github.com/phpdotenv/phpdotenv/compare/3b1071d550c2b9090e6d2225afec0f42a8a8d6da..550299f2ae572dd07da80e76230da0291adb6948
August 24, 2026 13:23https://github.com/phpdotenv/phpdotenv/pull/604#event-29915169465
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/8fdf977e2aedb69518ece04dbba5542570a3c9d7..979a77d6a978a715a57e0e5ee1a3d3701dc3e432
8fdf977https://github.com/phpdotenv/phpdotenv/commit/8fdf977e2aedb69518ece04dbba5542570a3c9d7
979a77dhttps://github.com/phpdotenv/phpdotenv/commit/979a77d6a978a715a57e0e5ee1a3d3701dc3e432
Compare https://github.com/phpdotenv/phpdotenv/compare/8fdf977e2aedb69518ece04dbba5542570a3c9d7..979a77d6a978a715a57e0e5ee1a3d3701dc3e432
August 24, 2026 17:28https://github.com/phpdotenv/phpdotenv/pull/604#event-29928964515
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/550299f2ae572dd07da80e76230da0291adb6948..6d6a5055a7e86ec980e43ef19cb3305620a0aa4e
550299fhttps://github.com/phpdotenv/phpdotenv/commit/550299f2ae572dd07da80e76230da0291adb6948
6d6a505https://github.com/phpdotenv/phpdotenv/commit/6d6a5055a7e86ec980e43ef19cb3305620a0aa4e
Compare https://github.com/phpdotenv/phpdotenv/compare/550299f2ae572dd07da80e76230da0291adb6948..6d6a5055a7e86ec980e43ef19cb3305620a0aa4e
August 24, 2026 17:28https://github.com/phpdotenv/phpdotenv/pull/604#event-29928965787
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/979a77d6a978a715a57e0e5ee1a3d3701dc3e432..63d1654ae31999ee6c846f8dec623e65c45cb11e
979a77dhttps://github.com/phpdotenv/phpdotenv/commit/979a77d6a978a715a57e0e5ee1a3d3701dc3e432
63d1654https://github.com/phpdotenv/phpdotenv/commit/63d1654ae31999ee6c846f8dec623e65c45cb11e
Compare https://github.com/phpdotenv/phpdotenv/compare/979a77d6a978a715a57e0e5ee1a3d3701dc3e432..63d1654ae31999ee6c846f8dec623e65c45cb11e
August 24, 2026 17:43https://github.com/phpdotenv/phpdotenv/pull/604#event-29929807356
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/6d6a5055a7e86ec980e43ef19cb3305620a0aa4e..2d0622b44924522e956dd0c32c1fe898613b2670
6d6a505https://github.com/phpdotenv/phpdotenv/commit/6d6a5055a7e86ec980e43ef19cb3305620a0aa4e
2d0622bhttps://github.com/phpdotenv/phpdotenv/commit/2d0622b44924522e956dd0c32c1fe898613b2670
Compare https://github.com/phpdotenv/phpdotenv/compare/6d6a5055a7e86ec980e43ef19cb3305620a0aa4e..2d0622b44924522e956dd0c32c1fe898613b2670
August 24, 2026 17:43https://github.com/phpdotenv/phpdotenv/pull/604#event-29929809352
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/63d1654ae31999ee6c846f8dec623e65c45cb11e..6f2f0148c0863b8617fe4c8a080e33361add57e4
63d1654https://github.com/phpdotenv/phpdotenv/commit/63d1654ae31999ee6c846f8dec623e65c45cb11e
6f2f014https://github.com/phpdotenv/phpdotenv/commit/6f2f0148c0863b8617fe4c8a080e33361add57e4
Compare https://github.com/phpdotenv/phpdotenv/compare/63d1654ae31999ee6c846f8dec623e65c45cb11e..6f2f0148c0863b8617fe4c8a080e33361add57e4
August 24, 2026 17:46https://github.com/phpdotenv/phpdotenv/pull/604#event-29929932101
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/2d0622b44924522e956dd0c32c1fe898613b2670..25572b72f5d3c874ce11d300c96b42442dc725ec
2d0622bhttps://github.com/phpdotenv/phpdotenv/commit/2d0622b44924522e956dd0c32c1fe898613b2670
25572b7https://github.com/phpdotenv/phpdotenv/commit/25572b72f5d3c874ce11d300c96b42442dc725ec
Compare https://github.com/phpdotenv/phpdotenv/compare/2d0622b44924522e956dd0c32c1fe898613b2670..25572b72f5d3c874ce11d300c96b42442dc725ec
August 24, 2026 17:46https://github.com/phpdotenv/phpdotenv/pull/604#event-29929934046
August 24, 2026 17:47https://github.com/phpdotenv/phpdotenv/pull/604#event-29929991172
GrahamCampbellhttps://github.com/GrahamCampbell
August 24, 2026 18:47https://github.com/phpdotenv/phpdotenv/pull/604#commits-pushed-6e502cc
https://github.com/GrahamCampbell
Add a value factory for pre-computed characters and offsetshttps://github.com/phpdotenv/phpdotenv/pull/604/commits/6e502cc109b3e85f6478f96c0099adc3dfca8f5d
6e502cchttps://github.com/phpdotenv/phpdotenv/pull/604/commits/6e502cc109b3e85f6478f96c0099adc3dfca8f5d
https://github.com/GrahamCampbell
Accumulate parsed value chunks in linear timehttps://github.com/phpdotenv/phpdotenv/pull/604/commits/a7907ddb4406a9a3bde6eec7fad48c10a4ff74d1
a7907ddhttps://github.com/phpdotenv/phpdotenv/pull/604/commits/a7907ddb4406a9a3bde6eec7fad48c10a4ff74d1
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
force-pushedhttps://github.com/phpdotenv/phpdotenv/compare/25572b72f5d3c874ce11d300c96b42442dc725ec..a7907ddb4406a9a3bde6eec7fad48c10a4ff74d1
25572b7https://github.com/phpdotenv/phpdotenv/commit/25572b72f5d3c874ce11d300c96b42442dc725ec
a7907ddhttps://github.com/phpdotenv/phpdotenv/commit/a7907ddb4406a9a3bde6eec7fad48c10a4ff74d1
Compare https://github.com/phpdotenv/phpdotenv/compare/25572b72f5d3c874ce11d300c96b42442dc725ec..a7907ddb4406a9a3bde6eec7fad48c10a4ff74d1
August 24, 2026 17:47https://github.com/phpdotenv/phpdotenv/pull/604#event-29930001467
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
dd5b391https://github.com/phpdotenv/phpdotenv/commit/dd5b391d9a5167f0a549c0ecd3b3cea1b7103ecc
Aug 24, 2026https://github.com/phpdotenv/phpdotenv/pull/604#event-29930086895
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/604
https://github.com/GrahamCampbell
GrahamCampbellhttps://github.com/GrahamCampbell
August 24, 2026 17:49https://github.com/phpdotenv/phpdotenv/pull/604#event-29930089483
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%2F604
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/604
Please reload this pagehttps://github.com/phpdotenv/phpdotenv/pull/604
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.