---
title: "lint/performance"
pagination: false
---

{/* Generated by scripts/gen-rule-docs.py. Edit mapping.toml, not this file. */}

Faster equivalents of slow constructs.

**[prefer-explode-over-preg-split](/docs/rules/lint/performance/prefer-explode-over-preg-split)**

Detects calls to `preg_split()` whose pattern has no regex meta-characters and no modifiers, which means the split could be done with `explode()`.

In the `code-quality` set. Safe fix.

**[prefer-static-closure](/docs/rules/lint/performance/prefer-static-closure)**

Lambdas not (indirectly) referencing `$this` must be declared `static`.

Not in any set. Unsafe fix: it can change behaviour.

**[require-qualified-native-constant](/docs/rules/lint/performance/require-qualified-native-constant)**

Add leading `\` before constant invocation of internal constant to speed up resolving. Constant name match is case-sensitive, except for `null`, `false` and `true`.

Not in any set. Unsafe fix: it can change behaviour.

**[require-qualified-native-function](/docs/rules/lint/performance/require-qualified-native-function)**

Add leading `\` before function invocation to speed up resolving.

Not in any set. Unsafe fix: it can change behaviour.
