3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dat= array("2020-02-01","2020-02-05","2020-02-10","20-02-12","2020-02-15"); $word= array("Attend To,Explore,Unaided,dull,bad"); //User input $start ="2020-01-01"; $end="2020-02-07"; //Filter out dates between start and end date $result = array_filter($dat, function($data_item) use($start,$end) { return $data_item >= $start && $data_item <= $end; }); $word_result = array_intersect_key(explode(',', $word[0]), $result); print_r($word_result);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [0] => Attend To [1] => Explore )

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:
54.4 ms | 401 KiB | 8 Q