3v4l.org

run code in 300+ PHP versions simultaneously
<?php $start = new DateTimeImmutable('2012-07-01'); $end = new DateTimeImmutable('2012-07-31'); $interval = new DateInterval('P7D'); $recurrences = 4; $periodWithRecurrences = new DatePeriod($start, $interval, $recurrences); $rc = new ReflectionObject($periodWithRecurrences); print_r($rc->getProperties()); $periodWithoutRecurrences = new DatePeriod($start, $interval, $end); $rc = new ReflectionObject($periodWithoutRecurrences); print_r($rc->getProperties());
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => ReflectionProperty Object ( [name] => start [class] => DatePeriod ) [1] => ReflectionProperty Object ( [name] => current [class] => DatePeriod ) [2] => ReflectionProperty Object ( [name] => end [class] => DatePeriod ) [3] => ReflectionProperty Object ( [name] => interval [class] => DatePeriod ) [4] => ReflectionProperty Object ( [name] => recurrences [class] => DatePeriod ) [5] => ReflectionProperty Object ( [name] => include_start_date [class] => DatePeriod ) [6] => ReflectionProperty Object ( [name] => include_end_date [class] => DatePeriod ) ) Array ( [0] => ReflectionProperty Object ( [name] => start [class] => DatePeriod ) [1] => ReflectionProperty Object ( [name] => current [class] => DatePeriod ) [2] => ReflectionProperty Object ( [name] => end [class] => DatePeriod ) [3] => ReflectionProperty Object ( [name] => interval [class] => DatePeriod ) [4] => ReflectionProperty Object ( [name] => recurrences [class] => DatePeriod ) [5] => ReflectionProperty Object ( [name] => include_start_date [class] => DatePeriod ) [6] => ReflectionProperty Object ( [name] => include_end_date [class] => DatePeriod ) )

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:
52.22 ms | 405 KiB | 8 Q