Skip to content

Files

Latest commit

 

History

History
13 lines (7 loc) · 790 Bytes

SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking.md

File metadata and controls

13 lines (7 loc) · 790 Bytes

Pattern: Use of argument unpacking for optimized function

Issue: -

Description

PHP optimizes some internal functions into special opcodes on VM level. Such optimization results in much faster execution compared to calling standard functions. This only works when these functions are not invoked with argument unpacking (...).

The list of these functions varies across PHP versions, but is the same as functions that must be referenced by their global name (either by \ prefix or using use function), not a fallback name inside namespaced code.

Further Reading