Skip to content
HNHacker News·
Not on the current live radar

When Modernization Breaks Working Code: A Study of LLMs on Legacy PHP

AI summary

A study on modernizing legacy PHP code with LLMs found that simply asking an LLM to "modernize this" often breaks working code. Researchers evaluated five LLMs on 100 WordPress 4.0 PHP files, aiming to update them to PHP 8.3 while preserving behavior. The LLMs broke 32-51 files, repairing at most 10, compared to Rector which broke 7 and repaired 6. Much of this damage was unnecessary, as only 37 findings required changes for PHP 8.3 compatibility.

Time & source

Times shown in UTC

Display time zone: UTC

Local time zone unavailable; showing UTC.

IngestedOffset at this time: UTC+0Nov 2, 2026, 23:00 UTC

Ingested
Nov 2, 2026, 23:00
Source type
Research

Full text isn't available here.

Read at source →
Source·Hacker News·arxiv.org