3v4l.org

run code in 300+ PHP versions simultaneously
<?php // How many times per day, get from DB $userInput = 17; $SecondsPerDay = 60 * 60 * 24; $Frequency = (int) ($SecondsPerDay / $userInput) -1; $midnight = strtotime('today midnight'); // Get an array of times to execute $executeTimes = array(); for($time=$midnight; $time<=($midnight+$SecondsPerDay); $time+=$Frequency) $executeTimes[] = date("g:i a", $time); print_r($executeTimes);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 12:00 am [1] => 1:24 am [2] => 2:49 am [3] => 4:14 am [4] => 5:38 am [5] => 7:03 am [6] => 8:28 am [7] => 9:52 am [8] => 11:17 am [9] => 12:42 pm [10] => 2:06 pm [11] => 3:31 pm [12] => 4:56 pm [13] => 6:20 pm [14] => 7:45 pm [15] => 9:10 pm [16] => 10:34 pm [17] => 11:59 pm )

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:
119.54 ms | 406 KiB | 5 Q