`===` or `==` in PHP?
Unanimous. Anyone disagreeing with this in 2026 needs to log off.
The exact prompts I used (3 variants)
Each model got each prompt 20 times (2 temperatures × 10 runs). The prompts deliberately don't mention the contested choice — they ask for a normal coding task and we measure what the model actually does.
-
Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`. -
Write a PHP function that takes an array of integers and returns true if any element equals zero. -
Write a PHP function `isAdmin($user)` that takes a user object and returns true if the user has the admin role.
Who said what
The pundit panel.
I showed each model the full vote tally, then asked them to defend their choice and dunk on whoever disagreed. Receipts attached.
“If you're using `==` in PHP, you've personally never watched `"0" == false == null` all shake hands and ruin your production data at 2am — and frankly, that ignorance is showing.”
“If you’re still defending `==` in PHP, you’re volunteering for type-juggling bugs like `0`, `"0"`, and `false` are interchangeable, which is toddler-tier programming.”
“Anyone defending loose-equals `==` in PHP is volunteering for coercion bugs; strict `===` is the only sane choice because it compares both value and type without PHP’s sneaky type juggling.”
“Relying on loose equals (`==`) is the professional equivalent of guessing, a sure sign you haven't been burned by PHP's infamous type coercion... yet.”
Show me the actual code (240 samples)
Claude Sonnet 4.6 — 60 samples click to expand
Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
## Order Status Label Function
Here's a clean, well-documented PHP function that converts order status strings to human-readable labels:
```php
<?php
/**
* Returns a human-readable label for a given order status string.
*
* @param string $status The order status identifier.
* @return string The human-readable label for the status.
* @throws InvalidArgumentException If the status is not recognized.
*/
function getOrderStatusLabel(string $status): string
{
$statusLabels = [
'pending' => 'Pending',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
'cancelled' => 'Cancelled',
];
$normalizedStatus = strtolower(trim($status));
if (!array_key_exists($normalizedStatus, $statusLabels)) {
throw new InvalidArgumentExcepti
… Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
## Order Status Label Function
Here's a clean, well-documented PHP function that converts order status strings to human-readable labels:
```php
<?php
/**
* Returns a human-readable label for a given order status.
*
* @param string $status The order status string.
* @return string The human-readable label.
* @throws InvalidArgumentException If the status is not recognized.
*/
function getOrderStatusLabel(string $status): string
{
$statusLabels = [
'pending' => 'Pending',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
'cancelled' => 'Cancelled',
];
$normalizedStatus = strtolower(trim($status));
if (!array_key_exists($normalizedStatus, $statusLabels)) {
throw new InvalidArgumentException(
sprintf(
… Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
## Order Status Label Function
Here's a clean, well-documented PHP function that converts order status strings to human-readable labels:
```php
<?php
/**
* Returns a human-readable label for a given order status.
*
* @param string $status The order status string.
* @return string The human-readable label.
* @throws InvalidArgumentException If the status is not recognized.
*/
function getOrderStatusLabel(string $status): string
{
$statusLabels = [
'pending' => 'Pending',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
'cancelled' => 'Cancelled',
];
$normalizedStatus = strtolower(trim($status));
if (!array_key_exists($normalizedStatus, $statusLabels)) {
throw new InvalidArgumentException(
sprintf(
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 — 60 samples click to expand
Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
<?php
function getOrderStatusLabel(string $status): string
{
switch ($status) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example usage:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
<?php
function getOrderStatusLabel(string $status): string
{
switch ($status) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
<?php
function getOrderStatusLabel(string $status): string
{
switch ($status) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
GPT-5.4 mini — 60 samples click to expand
Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
<?php
function getOrderStatusLabel(string $status): string
{
switch (strtolower($status)) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example usage:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
<?php
function getOrderStatusLabel(string $status): string
{
switch (strtolower(trim($status))) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example usage:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
```php
function getOrderStatusLabel(string $status): string
{
switch (strtolower($status)) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Shipped';
case 'delivered':
return 'Delivered';
case 'cancelled':
return 'Cancelled';
default:
return 'Unknown Status';
}
}
```
Example usage:
```php
echo getOrderStatusLabel('shipped'); // Shipped
``` …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
Gemini 2.5 Pro — 60 samples click to expand
Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
Of course! Here are a few ways to write this function in PHP, from a simple modern approach to a more robust and flexible one.
### 1. Recommended Approach (using `match` - PHP 8.0+)
This is the most modern, concise, and readable way to handle this if you are using PHP 8.0 or newer.
```php
<?php
/**
* Gets a human-readable label for a given order status.
*
* @param string $status The order status slug (e.g., 'pending', 'shipped').
* @return string The display-friendly label.
*/
function getOrderStatusLabel(string $status): string
{
return match (strtolower($status)) {
'pending' => 'Pending',
'shipped' => 'Shipped',
'delivered' => 'Delivered',
'cancelled' => 'Cancelled',
default => 'Unknown Status',
};
}
// --- Examples ---
ec
… Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
Of course! Here are a few ways to write this function in PHP, from the most common to a more modern, concise approach.
### 1. Using a `switch` Statement (Recommended)
This is a very clear, readable, and standard way to handle this kind of mapping. It's easy for anyone to understand what's happening.
```php
<?php
/**
* Gets a human-readable label for a given order status.
*
* @param string $status The order status key (e.g., 'pending', 'shipped').
* @return string The display-friendly label.
*/
function getOrderStatusLabel(string $status): string
{
// Normalize the input to lowercase to make the function case-insensitive
$status = strtolower($status);
switch ($status) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Sh
… Write a PHP function that takes an order status string and returns a human-readable label for `pending`, `shipped`, `delivered`, or `cancelled`.
Of course! Here are a few ways to write this function in PHP, from the most common to a more modern, concise approach.
### 1. Using a `switch` Statement (Recommended)
This is a very clear, readable, and standard way to handle this kind of mapping. It's easy for anyone to understand what's happening.
```php
<?php
/**
* Gets a human-readable label for a given order status.
*
* @param string $status The order status key (e.g., 'pending', 'shipped').
* @return string The display-friendly label.
*/
function getOrderStatusLabel(string $status): string
{
// Normalize the input to lowercase to make the function case-insensitive
$status = strtolower($status);
switch ($status) {
case 'pending':
return 'Pending';
case 'shipped':
return 'Sh
… …and 57 more samples (across 3 prompt variants × 2 temperatures × 10 runs). Full data in the result JSON on GitHub.
How I did this (the actual nerd shit)
For each of 4 models I ran 3 prompt variants at two temperatures (0.0 and 0.7), 10 runs each — 240 code samples total, cost $2.48.
Each output got fed through a fight-specific regex classifier.
For triple-equals-php the classifier looks for the specific signal in the output
(see the source — there's one function per fight, ~30 lines each).
When the signal is ambiguous, the classifier returns 'unknown' rather than guess.
Each model's vote = its modal classification across 60 runs. Confidence = Wilson 95% CI. Verdict = majority across models (ties reported as ties). Disagreement Index = normalized Shannon entropy of the vote distribution (0 = unanimous, 1 = maximum chaos). Leaderboard sorts by this.
The pundit quotes come from a follow-up call after the votes are in — each model gets the full tally and a per-model judgy prompt. I never edit the quotes.
Full walkthrough: the methodology page. Source: GitHub.
Open a PR with a new fight. I'll run it across all four models, write up the verdict, and add your name to the byline.
Submit via PR →