3v4l.org

run code in 300+ PHP versions simultaneously
<?php $cars=array("09:00","09:30","10:00","10:30","11:00","11:30","12:00","12:30"); $start = "09:30"; $end = "10:30"; $cars = array_filter($cars, function ($v) use ($start, $end) { return strtotime($v) < strtotime($start) || strtotime($v) > strtotime($end); }); print_r($cars);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => 09:00 [4] => 11:00 [5] => 11:30 [6] => 12:00 [7] => 12:30 )

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:
114.66 ms | 405 KiB | 5 Q