3v4l.org

run code in 300+ PHP versions simultaneously
<?php $dat = ["2020-02-01", "2020-02-05", "2020-02-10", "20-02-12", "2020-02-15"]; $word = ["Attend To,Explore,Unaided,dull,bad"]; $words = explode(',', $word[0]); //User input $start = "2020-01-01"; $end = "2020-02-07"; $result = []; foreach ($dat as $index => $date) { if ($date >= $start && $date <= $end) { $result[] = $words[$index]; } } var_export($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:
33.77 ms | 401 KiB | 8 Q