3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Zulu'); $start = new DateTime("10/12/2013 16:00"); $end = new DateTime("10/13/2014 16:00"); $interval = date_diff($start, $end); $time_interval = new DateInterval("P1W"); $a = $interval > $time_interval; $b = $interval > $time_interval; var_dump($a == $b);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Cannot compare DateInterval objects in /in/8UP1S on line 9 Warning: Cannot compare DateInterval objects in /in/8UP1S on line 11 bool(true)

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:
39.62 ms | 401 KiB | 8 Q