3v4l.org

run code in 300+ PHP versions simultaneously
<?php var_dump(new DateInterval('P1D') == new DateInterval('P1Y')); var_dump(new DateInterval('P1D') === new DateInterval('P1Y')); var_dump(new DateInterval('P1D') == new DateInterval('P1D')); var_dump(new DateInterval('P1D') === new DateInterval('P1D')); var_dump(new DateTime('2010-01-01') == new DateTime('2010-01-01')); var_dump(new DateTime('2010-01-01') === new DateTime('2010-01-01')); var_dump(new DateTime('2010-01-01') == new DateTime('2010-01-02')); var_dump(new DateTime('2010-01-01') === new DateTime('2010-01-02'));
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Cannot compare DateInterval objects in /in/r9ZHV on line 3 bool(false) bool(false) Warning: Cannot compare DateInterval objects in /in/r9ZHV on line 6 bool(false) bool(false) bool(true) bool(false) bool(false) bool(false)

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:
130.67 ms | 406 KiB | 5 Q