You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Don't save the opline or check for exceptions if it isn't needed.
(only affects temporary expressions, not $cv)
- Be more specific about the way to free string operands
```php
// test_strlen(10000000): .402 -> .387 at 2.5GHz
function test_strlen(int $n) {
$total = 0;
for ($i = 0; $i < $n; $i++) {
$total += strlen((string)$i);
}
return $total;
}
// test_in_array(40000000): .54 -> .44 at 2.5GHz
function test_in_array(int $n) {
$total = 0;
for ($i = 0; $i < $n; $i++) {
if (in_array($i, [1, 50, 100], true)) {
$total += $i;
}
}
return $total;
}
```
0 commit comments