arXiv:2610.41263cs.SEOct 2026

Manuscript Offprint

arXiv:2610.41263

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

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

Afridi Mahmud

Bangladesh University of

Engineering and Technology

Dhaka, Bangladesh

afridimahmud99@gmail.com

Md. As-Aid Rahman

Bangladesh University of

Engineering and Technology

Dhaka, Bangladesh

mdasaidrahman@gmail.com

Rifat Shahriyar

Bangladesh University of

Engineering and Technology

Dhaka, Bangladesh

rifat@cse.buet.ac.bd

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.

I. INTRODUCTION

Consider a PHP project that allows any 1.x version of a library. When released, it installs version 1.2. Years later, the same requirement may select version 1.9. Both versions are allowed. Yet the project's tests may produce different results.

This matters for migration benchmarks. These benchmarks evaluate tools that move software to newer language versions. They often select projects whose tests pass on the old version but fail on the new one [1]–[3]. A different library version can change whether a project qualifies for evaluation at all. A lock file preserves the selected versions [4], but 82.9% of releases with a composer.json in our corpus lack one. For these, a benchmark must choose which dependency versions to install.

Yet the effect of this choice on baseline eligibility and observed failures remains poorly understood. Reconstruction studies rebuild old software and treat a successful build or test run as the goal [5]–[9]. Benchmark pipelines filter packages by date or install the newest versions as a setup decision, but do not report how this choice changes their task sets [10]–[12]. TimeMachine-bench selects dependencies by release date [1], but its evaluation also changes the Python version and does not isolate the effect of dependency selection.

To our knowledge, we are the first to examine this effect in PHP 7.4-to-8.3 migration, keeping project source unchanged. We compare two policies using Composer, PHP's package manager, and the same saved Packagist records. Modern selection considers all versions in the snapshot, while release-date selection considers only versions published by the project's release date. We hold Composer 2 fixed for the main comparison and examine Composer version effects separately.

We ask three questions:

  • RQ1: Which projects pass before migration? How do dependency selection and Composer version affect test results on PHP 7.4?

  • RQ2: How faithful is the reconstruction? When a preserved lock file exists, how closely do the selected versions match it?

  • RQ3: Which failures become visible? For projects passing the PHP 7.4 controls under both policies with the same runner, do their PHP 8.3 outcomes differ?

Dependency selection affects the benchmark before migration even begins. With Composer 2 fixed, release-date selection raises the PHP 7.4 pass rate by 7.1 pp across 3,660 releases (RQ1). In a separate set of releases with committed locks, it also improves the average share of matching dependency versions by 67.1 pp among releases both policies resolve (RQ2).

Its influence continues after the PHP upgrade. With Composer's platform check bypassed, PHP 8.3 pass/fail outcomes differ in 15.0% of eligible pairs, and the two policies' candidate migration tasks overlap by 58.5% (RQ3). Nearly all differences favor modern selection, and most occur in Laravel projects, where an early-deprecation mechanism dominates. Excluding pairs affected by this mechanism reduces the observed disagreement rate to 4.6%. Preventing the deprecation from stopping tests lets some projects pass but reveals further failures in others: the first visible failure can hide another.

Our contribution is a controlled empirical study of how dependency selection affects three aspects of migration benchmarks: passing baselines, recovery of recorded versions, and visible migration failures. We compare candidate task sets, not tool performance on them. To support reproduction, we provide a source-archive index, a date-filtered Packagist mirror, execution procedures, and per-project results.

References (56)