---
title: "AI models hate Python and love PHP: we asked 12 of them 1,200 times"
description: "The authors asked 12 AI models for their most controversial opinion about programming languages, 1,200 times total, to see whether models produce varied takes or repeat the same ones. When told to pick a language at random, models overwhelmingly chose Go or Python, and 75% of all responses attacked the language they selected. Python, Rust, and TypeScript absorbed 600 of the 904 attacks, while PHP and Java received almost universal defense. Go’s error handling was the only topic that split models evenly, with 118 attacks and 118 defenses, and two models argued both sides across different conversations. The experiment cost USD 7.68 in API fees and found that models largely share the same narrow set of opinions, with heavy repetition of phrases like “boilerplate” and “overrated.”"
---

# AI models hate Python and love PHP: we asked 12 of them 1,200 times

[Jetbrains](https://yomu.fyi/company/jetbrains) · Denis Shiryaev · Nov 15, 2026

**Type:** Benchmark

## Summary

The authors asked 12 AI models for their most controversial opinion about programming languages, 1,200 times total, to see whether models produce varied takes or repeat the same ones. When told to pick a language at random, models overwhelmingly chose Go or Python, and 75% of all responses attacked the language they selected. Python, Rust, and TypeScript absorbed 600 of the 904 attacks, while PHP and Java received almost universal defense. Go’s error handling was the only topic that split models evenly, with 118 attacks and 118 defenses, and two models argued both sides across different conversations. The experiment cost USD 7.68 in API fees and found that models largely share the same narrow set of opinions, with heavy repetition of phrases like “boilerplate” and “overrated.”

## Context

The experiment tested whether AI models produce varied or repetitive controversial opinions about programming languages when instructed to be spicy, using 12 recent models from OpenAI, Anthropic, Google, xAI, Meta, DeepSeek, Alibaba, Moonshot AI, Z.ai, and Mistral AI.

## Approach / What changed

The authors sent 1,200 single-turn API calls (50 per model per prompt) to 12 models from 10 labs, each with default settings and no system prompt, asking for a controversial opinion about a randomly chosen language or about programming languages in general. Responses were labeled by two models (with names hidden) for target language and attack/defense classification, achieving 99% agreement on target and 94% on specific claim.

## Takeaways

- When instructed to ‘choose a language at random,’ models overwhelmingly pick Go or Python, and 75% of all responses attack the chosen language rather than defend it.
- Python, Rust, and TypeScript received 600 of 904 total attacks; PHP and Java were almost universally defended, with PHP getting 28 defenses out of 28 takes.
- Go’s error handling is the only topic that split models evenly (118 attacks vs. 118 defenses), and two models argued both sides across different conversations.

## FAQ

### Do the models actually pick a language at random?

No. The 600 'random' picks covered only 14 languages, with Go and Python taking 307 picks. GPT-6.1 Sol and Gemini 4 Argon each chose from just three languages. DeepSeek ranged the widest with eight languages but still picked Rust 31 times.

### Which languages do models attack most and defend most?

904 of 1,200 takes (75%) were attacks. Python got 312 takes (299 attacks), Rust got 167 (164 attacks), and TypeScript got 138 (137 attacks). PHP received 28 takes, all defenses. Java got 90 takes, 80 defenses. Go was the only language with an exact tie: 118 attacks and 118 defenses.

### Do any models contradict their own opinions?

Yes. GPT-6.1 Sol defended Go's error handling 20 times and attacked it 21 times. Mistral Large 4 called JavaScript's == a catastrophic flaw in 10 answers and defended it in 4. GPT-6.1 Sol and GPT-6 Astra both defended and attacked Java's checked exceptions.

**Tags:** [AI](https://yomu.fyi/topic/ai), [Benchmark](https://yomu.fyi/topic/benchmark), [LLMs](https://yomu.fyi/topic/llm), [Programming Languages](https://yomu.fyi/topic/programming-languages)

- Source: [Jetbrains](https://blog.jetbrains.com/ai/2026/11/ai-models-hate-python-and-love-php-we-asked-12-of-them-1-200-times)
- Source URL: https://blog.jetbrains.com/ai/2026/11/ai-models-hate-python-and-love-php-we-asked-12-of-them-1-200-times
- Ingested by Yomu: 2026-11-15T21:00:15.162Z

[Read original post](https://blog.jetbrains.com/ai/2026/11/ai-models-hate-python-and-love-php-we-asked-12-of-them-1-200-times)
