3v4l.org

run code in 300+ PHP versions simultaneously
<?php $time_intervals = preg_split('/[\;]+/', $time_intervals); //separates the intervals by ; $time_valid = false; $i = 0; $time_to_check = strtotime(date('H:i', strtotime($time_to_check))); foreach ($time_intervals as $time_interval): $time = preg_split('/[\-]+/', $time_interval); if (($time_to_check >= strtotime($time[0])) && ($time_to_check <= strtotime($time[1]))): $time_valid = true; endif; endforeach; ?>
Output for git.master, git.master_jit, rfc.property-hooks
Warning: Undefined variable $time_intervals in /in/8beWe on line 3 Deprecated: preg_split(): Passing null to parameter #2 ($subject) of type string is deprecated in /in/8beWe on line 3 Warning: Undefined variable $time_to_check in /in/8beWe on line 7 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/8beWe on line 7 Warning: Undefined array key 1 in /in/8beWe on line 12 Deprecated: strtotime(): Passing null to parameter #1 ($datetime) of type string is deprecated in /in/8beWe on line 12

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:
31.09 ms | 402 KiB | 8 Q