3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('P2Y4DT6H8M'); var_dump($interval); var_dump( $interval->f, $interval->weekday, $interval->weekday_behavior, $interval->first_last_day_of, $interval->special_type, $interval->special_amount, $interval->have_weekday_relative, $interval->have_special_relative ); ?>
Output for git.master, git.master_jit, rfc.property-hooks
object(DateInterval)#1 (10) { ["y"]=> int(2) ["m"]=> int(0) ["d"]=> int(4) ["h"]=> int(6) ["i"]=> int(8) ["s"]=> int(0) ["f"]=> float(0) ["invert"]=> int(0) ["days"]=> bool(false) ["from_string"]=> bool(false) } Warning: Undefined property: DateInterval::$weekday in /in/Xaov2 on line 9 Warning: Undefined property: DateInterval::$weekday_behavior in /in/Xaov2 on line 10 Warning: Undefined property: DateInterval::$first_last_day_of in /in/Xaov2 on line 11 Warning: Undefined property: DateInterval::$special_type in /in/Xaov2 on line 12 Warning: Undefined property: DateInterval::$special_amount in /in/Xaov2 on line 13 Warning: Undefined property: DateInterval::$have_weekday_relative in /in/Xaov2 on line 14 Warning: Undefined property: DateInterval::$have_special_relative in /in/Xaov2 on line 15 float(0) NULL NULL NULL NULL NULL NULL NULL

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:
70.46 ms | 403 KiB | 8 Q