3v4l.org

run code in 300+ PHP versions simultaneously
<?php $nonNewDay = array( array( '2:00 am', '11:00 am' ), array( '2:00 am', '11:00 am' ), array( '2:00 am', '11:00 am' ), array( '2:00 am', '11:00 am' ), array( '2:00 am', '11:00 am' ), // Weekends array( '2:00 am', '1:00 pm' ), array( '2:00 am', '12:00 pm' ), ); $current_date = strtotime(date("g:00 a")); foreach ($nonNewDay as $key => $value) { if ((strtotime("2:00 pm") <= $current_date) && ($current_date < strtotime("11:00 pm"))) { print("Buya"); } echo $key; } ?>
Output for git.master, git.master_jit, rfc.property-hooks
Buya0Buya1Buya2Buya3Buya4Buya5Buya6

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