3v4l.org

run code in 300+ PHP versions simultaneously
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Output for git.master, git.master_jit, rfc.property-hooks
So the originally modified date with 5 weeks added is:DateTime Object ( [date] => 2019-05-06 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/London ) 1. positive DIFF and addition diff is: + 1m 5d; days: 35 DateTime Object ( [date] => 2019-05-06 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/London ) is it equal to $date4? bool(true) 2. negative DIFF and addition diff is: - 1m 5d; days 35DateTime Object ( [date] => 2019-05-06 00:00:00.000000 [timezone_type] => 3 [timezone] => Europe/London ) is it equal to $date4? bool(true) So in order to make it equal to $date4 I need to subtract a negative interval instead of adding a positive one? How crazy is that?!

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
148.25 ms | 412 KiB | 5 Q