View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002407 | Xdebug | Uncategorized | public | 2026-02-27 05:06 | 2026-02-27 05:06 |
| Reporter | Soul--Reaver | Assigned To | |||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | new | 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 | ||||
| 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 |