← Home ← Codex ← DEBT
Browse by Category
+ added · updated 7d
✕ Clear A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Diagram: PHP Fibers — Internals & Scheduler Patterns PHP Fibers — Internals & Scheduler Patterns PHP 8.1+
How PHP Fibers work under the hood — stack allocation, suspension mechanics, and how to build a cooperative multitasking scheduler on top of the Fiber API introduced in PHP 8.1.
2mo ago php advanced
PCNTL Signals in CLI PHP PHP 7.1+
The PCNTL extension lets CLI PHP scripts handle OS signals (SIGTERM, SIGINT, SIGUSR1) — enabling graceful shutdown and hot reload in long-running daemons.
2mo ago php advanced
PHP Garbage Collection Internals (Cycle Collector) PHP 5.3+
PHP uses reference counting as its primary memory management strategy — when a value's reference count drops to zero it is freed immediately. A secondary cycle collector handles circular references that reference counting alone cannot free.
2mo ago php advanced
PHP Memory Model — Zval & Copy-on-Write PHP 7.0+
PHP stores every value in a zval (Zend value) container that holds the type, value, and a reference count. Arrays and strings are copied lazily — the copy only happens when one copy is modified (copy-on-write), making passing large values cheap until mutation.
2mo ago php advanced
PHP Sodium Extension (Libsodium) PHP 7.2+
The Sodium extension (bundled since PHP 7.2) provides modern, misuse-resistant cryptography via the libsodium C library — covering authenticated encryption, key exchange, password hashing with Argon2, and digital signatures with a simple, safe API.
2mo ago php advanced
Property Hooks (PHP 8.4) PHP 8.4+
PHP 8.4 property hooks add get and set accessors directly to property declarations — eliminating the need for explicit getter/setter methods on simple value objects.
2mo ago php advanced
PHP Intl Extension — Unicode PHP 5.3+
Grapheme functions, Normalizer, and Transliterator — correct multilingual text handling beyond what mb_string provides, including emoji and combining characters.
3mo ago php advanced
Property Hooks (PHP 8.4) PHP 8.0+
PHP 8.4 property hooks attach get and set logic directly to a property declaration — co-locating validation and transformation with the property itself.
3mo ago php advanced
PHAR Archives & Packaging PHP 5.2+
PHP's native archive format for self-contained distributable applications — like a JAR file for Java — with a bootstrap stub and compressed contents.
3mo ago php advanced
PHP FFI PHP 7.4+
Foreign Function Interface — allows PHP to call C library functions and use C data structures directly, enabling integration with native libraries without writing a PHP extension.
3mo ago php advanced
Diagram: PHP Preloading (opcache.preload) PHP Preloading (opcache.preload) PHP 7.4+
Loading PHP files into shared memory at server start so every worker process gets pre-compiled bytecode with zero per-request filesystem overhead.
3mo ago php advanced
PHP Stream Wrappers PHP 5.0+
PHP's I/O abstraction layer — built-in wrappers like file://, php://, phar://, and http:// let file functions operate over any protocol.
3mo ago php advanced
Property Hooks (PHP 8.4) PHP 8.4+
PHP 8.4 property hooks attach get/set logic directly to a property declaration — eliminating getter/setter method boilerplate for common validation and transformation patterns.
php advanced
✓ schema.org compliant