3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dates = array("2013-12-24","2013-12-25","2014-12-24","2013-12-27"); $start = '2013-12-25'; $end = '2013-12-26'; $dates_in_range = array_filter($array, function($date) { global $start; global $end; return (strtotime($date) >= strtotime($start) and strtotime($date) <= strtotime($end)); }); print_r($dates_in_range);

preferences:
44.47 ms | 402 KiB | 5 Q