Finally got around to testing out Chat GPT and it's phenomenal. The PHP/JS code it's outputting is almost spot on for simple to medium complexity, even when I ask it to use something less well used like PHP's DomDocument.