View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002407 | Xdebug | Uncategorized | public | 2026-02-27 05:06 | 2026-03-23 19:13 |
| Reporter | Soul--Reaver | Assigned To | derick | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | assigned | Resolution | open | ||
| Platform | x64 | OS | Windows 11 | OS Version | 25H2 |
| Product Version | 3.5.1 | ||||
| Summary | 0002407: Performance issues with 3.5.1 vs 3.4 | ||||
| Description | I updated my PHP and Xdebug today. CPU: AMD 5700G | ||||
| Steps To Reproduce | I've attached a simple script that loops through if statements using == and === and measures performance between them. Nothing special but it allows a stable performance comparison. Xdebug 3.4.7: Xdebug 3.5.0: Xdebug 3.5.1: | ||||
| Tags | No tags attached. | ||||
| Attached Files | test_==_===.php (973 bytes)
<pre>
<?php
$time_start = microtime(true);
for ( $i = 0; $i < 10000000; ++$i )
{
$results = ('string' . $i) == ('string' . $i);
}
$time_end = microtime(true);
printf("== with matching strings took %f seconds\n", $time_end - $time_start);
$time_start = microtime(true);
for ( $i = 0; $i < 10000000; ++$i )
{
$results = ('string' . $i) == ('string' . ($i + 1));
}
$time_end = microtime(true);
printf("== with non-matching strings took %f seconds\n", $time_end - $time_start);
$time_start = microtime(true);
for ( $i = 0; $i < 10000000; ++$i )
{
$results = ('string' . $i) === ('string' . $i);
}
$time_end = microtime(true);
printf("=== with matching strings took %f seconds\n", $time_end - $time_start);
$time_start = microtime(true);
for ( $i = 0; $i < 10000000; ++$i )
{
$results = ('string' . $i) === ('string' . ($i + 1));
}
$time_end = microtime(true);
printf("=== with non-matching strings took %f seconds\n", $time_end - $time_start);
?>
</pre>
| ||||
| Operating System | Windows 11 25H2 | ||||
| PHP Version | 8.3.20-8.3.29 | ||||
|
|
I'm glad to see that Xdebug 3.5.1 is again much faster than 3.5.0 — but it is not good to see it is still so much slowed than 3.4.x. Could you run your benchmark again after setting |
|
|
See the results below. Xdebug 3.4.7: Xdebug 3.5.0: Xdebug 3.5.1: |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2026-02-27 05:06 | Soul--Reaver | New Issue | |
| 2026-02-27 05:06 | Soul--Reaver | File Added: test_==_===.php | |
| 2026-03-23 14:15 | derick | Assigned To | => derick |
| 2026-03-23 14:15 | derick | Status | new => feedback |
| 2026-03-23 14:15 | derick | Note Added: 0007472 | |
| 2026-03-23 19:13 | Soul--Reaver | Note Added: 0007481 | |
| 2026-03-23 19:13 | Soul--Reaver | Status | feedback => assigned |