3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date1 = date_create('2014-07-19 13:00'); $date2 = date_create('2014-07-20 13:00'); $newArr = array(); // if start date is to be included then use $newArr[] = date_format($date1, 'Y-m-d H:i:s'); while($date1 > $date2) { $date1 = date_add($date1,date_interval_create_from_date_string('1 hour')); $newArr[] = date_format($date1, 'Y-m-d H:i:s'); } echo "<pre>"; print_r($newArr); echo "</pre>";
Output for git.master, git.master_jit, rfc.property-hooks
<pre>Array ( [0] => 2014-07-19 13:00:00 ) </pre>

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