Are there any performance differences between pre-increment and post-increment in PHP loops?

Pre-increment and post-increment operators can have a slight performance difference in PHP loops. Pre-increment (++$i) increments the variable before using it in the current operation, while post-increment ($i++) uses the variable's current value before incrementing it. In most cases, the performance difference is negligible, but using pre-increment can be slightly faster as it avoids creating a temporary variable to hold the current value.

// Using pre-increment in a loop for better performance
for ($i = 0; $i < 10; ++$i) {
    // Loop logic here
}