# Yesterday's Code, Today's Dependencies: How Dependency Selection Shapes PHP Migration Benchmarks

DevFeed: [Yesterday's Code, Today's Dependencies: How Dependency Selection Shapes PHP Migration Benchmarks](<https://devfeed.tech/articles/yesterday-s-code-today-s-dependencies-how-dependency-selection-shapes-php-migration-benchmarks-112674.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2610.41263>)

Author: Afridi Mahmud, Md. As-Aid Rahman, Rifat Shahriyar

Published: 2026-11-02T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Software Engineering](<https://devfeed.tech/sources/arxiv-software-engineering.md>)

Topics: [Composer](<https://devfeed.tech/topics/composer.md>), [Legacy Modernization](<https://devfeed.tech/topics/legacy-modernization.md>), [Benchmark](<https://devfeed.tech/topics/benchmark.md>), [Test automation](<https://devfeed.tech/topics/test-automation.md>)

Tags: [7-4](<https://devfeed.tech/tags/7-4.md>), [benchmarks](<https://devfeed.tech/tags/benchmarks.md>), [composer](<https://devfeed.tech/tags/composer.md>), [cs-se](<https://devfeed.tech/tags/cs-se.md>), [dependencies](<https://devfeed.tech/tags/dependencies.md>), [deprecations](<https://devfeed.tech/tags/deprecations.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [locks](<https://devfeed.tech/tags/locks.md>), [migration](<https://devfeed.tech/tags/migration.md>), [overlap](<https://devfeed.tech/tags/overlap.md>), [php](<https://devfeed.tech/tags/php.md>), [platform](<https://devfeed.tech/tags/platform.md>), [runner](<https://devfeed.tech/tags/runner.md>), [selection](<https://devfeed.tech/tags/selection.md>)

## AI overview

In PHP 7.4-to-8.3 migration benchmarks, dependency selection changes both baseline test pass rates and which migration failures are visible. Using unchanged source, saved package records, and Composer 2, the study compares modern selection (all snapshot versions) with release-date selection (versions published by the project's release date). Across 3,660 releases, release-date selection raises the PHP 7.4 pass rate by 7.1 percentage points and matches committed lockfile versions more closely. For projects passing under both policies, PHP 8.3 outcomes differ in 15.0% of eligible pairs, and the candidate task sets overlap by 58.5%. Differences mainly involve Laravel projects, where older dependencies produce deprecations avoided by newer versions. Preserved lockfiles are the strongest version reference; without them, release-date selection is a historically grounded alternative. The study recommends making dependency policy explicit and reporting its effects.

## Source excerpt

arXiv:2610.41263v1 Announce Type: new Abstract: Migration benchmarks need projects whose tests pass before migration begins. Yet an old project can behave differently without any change to its code. Reinstalling it today may introduce newer libraries, changing both its initial test results and the failures observed during migration. We investigate this effect in PHP 7.4-to-8.3 migration. Using unchanged project source and saved package records, we compare two dependency policies. Modern selection allows all versions in the snapshot, while release-date selection allows only versions published by the project's release date. With Composer 2 fixed, release-date selection improves the PHP 7.4 pass rate by 7.1 pp across 3,660 releases. A separate comparison against committed locks shows that it also recovers recorded dependency versions more closely than modern selection. The choice matters after migration as well. Among projects that pass on PHP 7.4 under both policies, PHP 8.3 test outcomes differ in 15.0% of eligible pairs. We use a shared test runner and bypass Composer's platform check to isolate test behavior. The resulting candidate migration task sets overlap by only 58.5%. Most differences arise in Laravel projects, where older dependencies trigger deprecations that newer versions avoid. Targeted interventions show that removing these initial failures can restore passing tests or expose further incompatibilities. Thus, dependency selection changes not just whether an old project passes, but also which migration failures a benchmark can observe. Preserved locks provide the strongest available version reference; without them, release-date selection offers a historically grounded alternative. Migration benchmarks should make this choice explicit and report its effect on their results.