3v4l.org

run code in 500+ PHP versions simultaneously
<?php $ranges = [ ['from' => '9:00', 'to' => '9:45'], ['from' => '9:55', 'to' => '10:20'], ['from' => '10:30', 'to' => '11:00'], ]; if (!isset($ranges[0]['from'], $ranges[0]['to'])) { throw new Exception('insufficient business hours data'); } printf('Open hours today: %s - %s', $ranges[0]['from'], $ranges[array_key_last($ranges)]['to']);
Output for rfc.property-hooks, git.master, git.master_jit
Open hours today: 9:00 - 11:00

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:
51.19 ms | 1388 KiB | 4 Q