3v4l.org

run code in 300+ PHP versions simultaneously
<?php date_default_timezone_set('Zulu'); $interval = date_diff( new DateTime("10/12/2013 16:00"), new DateTime("10/13/2014 16:00") ); $time_interval = new DateInterval("P1W"); $a = $interval >= $time_interval; $b = $interval == $time_interval; $c = $interval <= $time_interval; echo $interval->format('D M'); $d = $interval >= $time_interval; $e = $interval == $time_interval; $f = $interval <= $time_interval; var_dump($a, $b, $c, $d, $e, $f);
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Cannot compare DateInterval objects in /in/qkMUO on line 10 Warning: Cannot compare DateInterval objects in /in/qkMUO on line 11 Warning: Cannot compare DateInterval objects in /in/qkMUO on line 12 D M Warning: Cannot compare DateInterval objects in /in/qkMUO on line 14 Warning: Cannot compare DateInterval objects in /in/qkMUO on line 15 Warning: Cannot compare DateInterval objects in /in/qkMUO on line 16 bool(false) bool(false) bool(false) 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:
34.14 ms | 402 KiB | 8 Q