When Modernization Breaks Working Code: A Single-File Study of LLMs on Legacy PHP
- View PDF HTML (experimental) Abstract:Pasting a legacy file into an LLM and asking it to "modernize this" is an easy shortcut.
- But is the result better than leaving the code alone?
- In this paper, we study this single-file setting with five LLMs, each asked to modernize 100 WordPress 4.0 PHP files to PHP 8.3 while preserving behavior, with no project context or execution feedback.
Unverified
- View PDF HTML (experimental) Abstract:Pasting a legacy file into an LLM and asking it to "modernize this" is an easy shortcut.
- But is the result better than leaving the code alone?
- In this paper, we study this single-file setting with five LLMs, each asked to modernize 100 WordPress 4.0 PHP files to PHP 8.3 while preserving behavior, with no project context or execution feedback.
Sources: Arxiv