Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Modern PHP 8+ features including enums, attributes, readonly properties, and union types.
.claude/skills/valec3-backend-php-modern-features/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-02 | ✗→✓ | ▲ Improved | -28% | 0% |
| case-07 | ✗→✓ | ▲ Improved | 20% | 0% |
| case-17 | ✗→✓ | ▲ Improved | 61% | 0% |
| case-01 | ✓→✓ | = Same ✓ | -26% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 70% | 0% |
php<?php enum UserStatus: string { case ACTIVE = 'active'; case INACTIVE = 'inactive'; case BANNED = 'banned'; public function label(): string { return match($this) { self::ACTIVE => 'Active User', self::INACTIVE => 'Inactive', self::BANNED => 'Banned User' }; } } // Usage $user->status = UserStatus::ACTIVE;
php<?php class User { public function __construct( public readonly int $id, public readonly string $email, public string $name ) {} } $user = new User(1, 'user@example.com', 'John'); // $user->id = 2; // Error: Cannot modify readonly property
php<?php function processValue(int|float|string $value): int|float { return is_string($value) ? (int)$value : $value; }
php<?php function createUser( string $name, string $email, bool $isActive = true ): User { // ... } // Usage $user = createUser( email: 'user@example.com', name: 'John Doe' );
php<?php #[Attribute] class Route { public function __construct( public string $path, public string $method = 'GET' ) {} } class UserController { #[Route('/api/users', 'GET')] public function index() {} }
php<?php $message = match($status) { UserStatus::ACTIVE => 'User is active', UserStatus::INACTIVE => 'User is inactive', UserStatus::BANNED => 'User is banned', default => 'Unknown status' };
| Case | Status | Duration (ms) | Turns | Tokens | Tool calls | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Without | With | Δ | Without | With | Δ | Without | With | Δ | Without | With | Δ | ||
case-01 | pass→pass | 11,600 | 5,149 | -56% | 1 | 1 | 0% | 2,168 | 1,605 | -26% | 0 | 0 | — |
case-02 | fail→pass | 6,868 | 2,261 | -67% | 1 | 1 | 0% | 1,384 | 995 | -28% | 0 | 0 | — |
case-03 | pass→pass | 4,005 | 4,379 | +9% | 1 | 1 | 0% | 753 | 1,280 | +70% | 0 | 0 | — |
case-04 | pass→pass | 4,425 | 3,248 | -27% | 1 | 1 | 0% | 953 | 1,256 | +32% | 0 | 0 | — |
case-05 | pass→pass | 3,499 | 2,559 | -27% | 1 | 1 | 0% | 676 | 1,080 | +60% | 0 | 0 | — |
case-06 | pass→pass | 3,377 | 2,197 | -35% | 1 | 1 | 0% | 491 | 981 | +100% | 0 | 0 | — |
case-07 | fail→pass | 6,541 | 4,142 | -37% | 1 | 1 | 0% | 1,028 | 1,233 | +20% | 0 | 0 | — |
case-08 | pass→pass | 3,461 | 2,666 | -23% | 1 | 1 | 0% | 714 | 1,165 | +63% | 0 | 0 | — |
case-09 | pass→pass | 6,180 | 2,915 | -53% | 1 | 1 | 0% | 1,212 | 1,027 | -15% | 0 | 0 | — |
case-10 | pass→pass | 4,788 | 3,132 | -35% | 1 | 1 | 0% | 821 | 1,128 | +37% | 0 | 0 | — |
case-11 | pass→pass | 4,474 | 3,515 | -21% | 1 | 1 | 0% | 922 | 1,247 | +35% | 0 | 0 | — |
case-12 | pass→pass | 3,674 | 2,567 | -30% | 1 | 1 | 0% | 679 | 1,109 | +63% | 0 | 0 | — |
case-13 | pass→pass | 4,027 | 3,733 | -7% | 1 | 1 | 0% | 825 | 1,386 | +68% | 0 | 0 | — |
case-14 | pass→pass | 6,431 | 4,985 | -22% | 1 | 1 | 0% | 989 | 1,652 | +67% | 0 | 0 | — |
case-15 | pass→pass | 3,994 | 3,366 | -16% | 1 | 1 | 0% | 754 | 1,019 | +35% | 0 | 0 | — |
case-16 | pass→pass | 3,047 | 2,427 | -20% | 1 | 1 | 0% | 505 | 1,011 | +100% | 0 | 0 | — |
case-17 | fail→pass | 3,875 | 2,832 | -27% | 1 | 1 | 0% | 704 | 1,134 | +61% | 0 | 0 | — |
case-18 | pass→pass | 3,813 | 3,225 | -15% | 1 | 1 | 0% | 712 | 1,186 | +67% | 0 | 0 | — |
case-19 | pass→pass | 2,470 | 4,177 | +69% | 1 | 1 | 0% | 432 | 990 | +129% | 0 | 0 | — |
case-20 | pass→pass | 2,600 | 2,179 | -16% | 1 | 1 | 0% | 492 | 966 | +96% | 0 | 0 | — |
case-21 | pass→pass | 3,101 | 3,080 | -1% | 1 | 1 | 0% | 473 | 1,203 | +154% | 0 | 0 | — |
case-22 | pass→pass | 6,588 | 5,415 | -18% | 1 | 1 | 0% | 896 | 1,384 | +54% | 0 | 0 | — |
case-23 | pass→pass | 2,843 | 2,789 | -2% | 1 | 1 | 0% | 535 | 1,044 | +95% | 0 | 0 | — |
DecimalAI ran this skill against gemini-3.6-flash twice over the same eval suite — once with the skill loaded and once without — and compared the two runs case by case. 23 cases were attempted. The headline lift of +13 percentage points is the difference between those two pass rates over the 23 comparable cases.
Without the skill loaded, the model failed this case. With it loaded, the same prompt on the same model passed. This is one improved case from the latest verified run; every case, including any that regressed, is in the table above.
Other measured skills in the registry, with their headline benchmark lift.