跳到正文
HNHacker News·
暂不在当前实时榜单

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

AI 摘要

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.

时间与来源

时间显示为 UTC

显示时区:UTC

本地时区尚不可用,暂时显示 UTC。

收录当时偏移:UTC+02026年11月2日 23:00 UTC

收录
2026年11月2日 23:00
来源类型
研究

本站未收录正文。

前往源站阅读 →
来源·Hacker News·arxiv.org