Installing a supported branch is a package change and it takes minutes. The code that called a function the branch no longer has is a different problem: nothing fails until the runtime moves, and when it does the failure lands on whichever request reaches that call first. The pass below is what turns that from a risk into a list, and it is worth doing before the runtime changes.
Step 1: inventory the dialect
What matters is which constructs the code uses, counted per pattern with the file and line each appears on. The removal list is published per target branch, so the honest starting point is that list applied to the codebase.
# Every hard removal in PHP 8.0, per pattern, with counts
for fn in create_function each hebrevc convert_cyr_string money_format \
ezmlm_hash restore_include_path get_magic_quotes_gpc \
get_magic_quotes_runtime fgetss; do
printf '%-28s %s\n' "$fn" "$(grep -rInE "\b$fn[[:space:]]*\(" \
--include='*.php' --include='*.inc' --include='*.phtml' . | wc -l)"
done
# Removed constant, and the mb-regex aliases that went with the extension change
grep -rIn 'FILTER_SANITIZE_MAGIC_QUOTES' --include='*.php' . | wc -l
grep -rInE '\bmb(ereg|eregi|ereg_replace|eregi_replace|split)[[:space:]]*\(' \
--include='*.php' . | wc -l
The counts are the deliverable. Zero on a pattern is information; a pattern with four hundred instances concentrated in two plugin directories is a different project from four hundred spread across application code, and which one it is decides the schedule. Run it over the themes and plugins as well, because that is where the concentration usually is.
Step 2: separate the removals that fail loudly from the changes that fail silently
The loud ones are easy and everyone plans for them: call a removed function and the request ends. The quiet ones are what outlive a migration. In the same PHP 8.0 guide, implode() stops accepting its parameters in reverse order, and the result of sorting functions can differ when elements compare as equal: neither raises anything, and both can change data that was written years ago and read now.
Step 3: do not trust the metadata, measure it
A plugin's declared minimum PHP version is a floor: it says what the plugin will install on. It does not say what has been tested, and it cannot, because there is no field for that. Querying the directory makes the gap visible.
curl -s "https://api.wordpress.org/plugins/info/1.2/?action=query_plugins&request%5Bper_page%5D=100" \
| jq -r '.plugins[] | [(.requires_php // "undeclared"), .slug] | @tsv' \
| cut -f1 | sort | uniq -c | sort -rn | head
Read on 24 October 2026, that returns 93 plugins declaring a minimum and 7 declaring nothing; of the 93, 88 declare 7.4 or lower and none declares above 8.3. The conclusion is not that 88 plugins are broken. Most of them probably run fine on a current branch. It is that the field cannot tell you which do, so the compatibility position has to come from running them, and the same applies to WordPress's own statements: the platform recommends PHP 8.3 or greater while its core update API reports a minimum of 7.4.
Step 4: make the deprecations visible on the branch you are already on
Most legacy estates suppress notices and warnings because they were noisy years ago, which means the evidence of the next branch's removals is already being generated and thrown away. Turn reporting up on a staging copy of the current branch and read the log: dynamic properties deprecated in 8.2 unless the class opts in, implicitly nullable parameters in 8.4, the removed error and session constants that keep appearing in configuration.
Expect two categories and treat them differently. Most items are a pattern repeated across years of templates, and one replacement fixes all of them. A minority are a symptom of something that should be fixed, not silenced: a value being written to an object that was never declared, a type that only works because the engine is lenient, and those are the ones worth the reading time, because a deprecation is a schedule.
Step 5: verify without a test suite
Legacy estates rarely have one, and building a framework first is the wrong order. What the migration needs is coverage of the paths that carry traffic: the route inventory, the forms, the authenticated actions, the imports and the endpoints something else calls. Five assertions per path are usually enough: the request returns 200, it does not log a fatal, a known value appears in the response, the write reached the database, and nothing new appeared in the deprecation log.
while read -r path; do
code=$(curl -s -o /dev/null -w '%{http_code}' "https://staging.example.com$path")
printf '%s %s\n' "$code" "$path"
done < routes.txt | tee before.txt
# Read the application log for the same window as well.
# A 200 with a fatal in the log is not a pass.
Run it before the code changes to establish the baseline, after each batch to confirm nothing regressed, and again once the runtime has moved. The comparison is the evidence, and it is also what makes the next upgrade cheaper: the harness outlives the migration, and the estate that could not answer 'does this work?' in March can answer it in a minute afterwards.
Step 6: inventory what no package manager can see
The dialect scan in step 1 finds language constructs. It does not find vendored code: a library copied into the project, a bundled SDK, a codec someone compiled in because the package manager of the day was not trusted. Those copies are invisible to every dependency report the estate can run and they survive the migration untouched, with whatever advisories they have accumulated.
# Directories that look like copied-in code
find . -type d \( -name vendor -o -name lib -o -name libs -o -name third_party \
-o -name vendor_lib -o -name includes \) -prune -print
# Composer knows about what Composer installed; nothing else does
[ -f composer.lock ] && jq -r '.packages[] | "\(.name) \(.version)"' composer.lock | head
# What the runtime itself was built with: cURL, Brotli, OpenSSL, compression
php -i | grep -iE 'curl( version| ssl)|brotli|openssl( version| library)|zlib( version)?'
php -r 'foreach (get_loaded_extensions() as $e) printf("%s %s\n", $e, phpversion($e) ?: "-");'
Then read the result for the second half of the question: for each vendored or linked library, which version is it, and does that version have a current advisory? The Brotli decoder flaw of 22 October 2026 (CVE-2026-111497, out-of-bounds write, affecting Brotli 1.0.3 through 1.2.0 and fixed in 1.0.10, 1.1.1 and 1.2.1) is a useful test case, because the fix is a library version and no amount of PHP migration delivers it. The PHP project's own response makes the point: it rebuilt its Windows packages as −1 releases to ship Brotli 1.2.1, with the PHP source and runtime versions unchanged.