3v4l.org

run code in 300+ PHP versions simultaneously
<?php $now = (new DateTime())->setTime(0,0,30); $ts = strftime('%Y-%m-%d %H:%M:00', $now); $exists = ['jobname/' . $ts => true ]; $timeAhead = 15 * 60 + $now; $jobName = 'jobname'; for ($time = $now; $time < $timeAhead; $time += 60) { $ts = strftime('%Y-%m-%d %H:%M:00', $time); if (!empty($exists[$jobName.'/' . $ts])) { // already scheduled continue; } } echo count($exists);
Output for git.master, git.master_jit, rfc.property-hooks
Deprecated: Function strftime() is deprecated in /in/HoWBh on line 3 Fatal error: Uncaught TypeError: strftime(): Argument #2 ($timestamp) must be of type ?int, DateTime given in /in/HoWBh:3 Stack trace: #0 /in/HoWBh(3): strftime('%Y-%m-%d %H:%M:...', Object(DateTime)) #1 {main} thrown in /in/HoWBh on line 3
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:
65.76 ms | 401 KiB | 8 Q