3v4l.org

run code in 300+ PHP versions simultaneously
<?php $interval = new DateInterval('P2Y4DT6H8M'); 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
Warning: Undefined property: DateInterval::$weekday in /in/2vfiq on line 7 Warning: Undefined property: DateInterval::$weekday_behavior in /in/2vfiq on line 8 Warning: Undefined property: DateInterval::$first_last_day_of in /in/2vfiq on line 9 Warning: Undefined property: DateInterval::$special_type in /in/2vfiq on line 10 Warning: Undefined property: DateInterval::$special_amount in /in/2vfiq on line 11 Warning: Undefined property: DateInterval::$have_weekday_relative in /in/2vfiq on line 12 Warning: Undefined property: DateInterval::$have_special_relative in /in/2vfiq on line 13 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:
30.03 ms | 402 KiB | 8 Q