[php-src] PR #21715: [Draft] Add UUID extension

From: Date: Fri, 10 Apr 2026 21:00:06 +0000
Subject: [php-src] PR #21715: [Draft] Add UUID extension
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-35665@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/21715 Author: kocsismate Native support for UUIDs is clearly missing from PHP, so the newly added UUID extension would fill this void. For now, only v7 is implemented, just for demonstration purposes. I wanted to benchmark how a native implementation compares performance-wise against symfony/uid and ramsey/uuid. Here are the initial results (with the caveat that I have not verified yet the correctness of the native version, and monotonic ordering is not yet guaranteed): ### PHP UUID - 50 iterations, 20 warmups, 10 requests (sec) | PHP | Min | Max | Std dev | Rel std dev % | Mean | Mean diff % | Median | |-------------|-------------|-------------|--------------|---------------|--------|-------------|------------| |[PHP - UUID](https://github.com/kocsismate/php-src/commit/a5b8c4a10f)|0.07254|0.07463|0.00048|0.65%|0.07329|0.00%|0.07316| ### Symfony UUID - 50 iterations, 20 warmups, 10 requests (sec) | PHP | Min | Max | Std dev | Rel std dev % | Mean | Mean diff % | Median | |-------------|-------------|-------------|--------------|---------------|--------|-------------|------------| |[PHP - UUID](https://github.com/kocsismate/php-src/commit/a5b8c4a10f)|0.62739|0.63435|0.00137|0.22%|0.63016|0.00%|0.62998| ### Ramsey UUID - 50 iterations, 20 warmups, 10 requests (sec) | PHP | Min | Max | Std dev | Rel std dev % | Mean | Mean diff % | Median | |-------------|-------------|-------------|--------------|---------------|--------|-------------|------------| |[PHP - UUID](https://github.com/kocsismate/php-src/commit/a5b8c4a10f)|1.04438|1.06381|0.00333|0.32%|1.04850|0.00%|1.04795|

« previous php.git-pulls (#35665) next »