I discovered that a DateTime object in PHP can be compared to another as the \">\" and \"<\" operators are overloaded.
Is it the same with DateInterval?
A
No, this is not possible right now and it never will be. There is a fundamental problem with comparing two DateInterval's.
A DateInterval is relative, while a DateTime is absolute: P1D means 1 day, so you would think that means (24*60*60) 86.400 seconds. But due to the Leap Second it isn't always the case.
That looks like a rare situation, don't forget comparing months with days is even harder:
P1M and P30D - which one is the greater one? is it P1M even though I'm currently in february? Or is it P30D even though I'm currently in August? What about PT24H30M and P1D? https://bugs.php.net/bug.php?id=49914#1490336933