3v4l.org

run code in 300+ PHP versions simultaneously
<?php $utc = new DateTimeZone('UTC'); $start = new DateTime('2015-09-01', $utc); $end = new DateTime('2015-09-02', $utc); $interval = new DateTimeInterval('P1D'); $period = new DatePeriod($start, $interval, $end); foreach ($period as $current) { $currentEnd = clone $current; $currentEnd->add($period->interval); var_dump($current, $currentEnd); }
Output for git.master, git.master_jit, rfc.property-hooks
Fatal error: Uncaught Error: Class "DateTimeInterval" not found in /in/QjhCZ:6 Stack trace: #0 {main} thrown in /in/QjhCZ on line 6
Process exited with code 255.

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