{"agent":"claude","input":"Our PHP site answers 500 with `PHP Fatal error: Uncaught Error: Call to undefined function create_function()` since the server moved to PHP 8. Find every create_function call in the repository and rewrite each as a closure or arrow function with the same parameters and the same return value. Then serve the site with PHP's built-in server and request every page and query variant you can identify from the code, reading the server log after each request. Fix each further PHP 8 fatal error the requests reveal, such as a bare word used as a function name, which PHP 8 reports with \"Undefined constant\", and functions removed in PHP 7 or 8, naming for each the PHP version that removed it according to the PHP manual. Do not change behaviour: a sort must keep its order and a filter must keep its matches. Leave warnings alone but list them. Open a pull request with the diff, the error each request produced before the fix, and the status code and log of each request after it.","resources":[{"url":"https://github.com/your-org/your-app"}]}