3v4l.org

run code in 300+ PHP versions simultaneously
<?php $date_range_create_event = "Jan 12, 2019 08:00 PM - Feb 14, 2019 06:00 AM"; $dates = explode(" - ", $date_range_create_event); foreach($dates as &$date){ $temp = explode(" ", $date); $date = ["date" => implode(" ",array_splice($temp, 0,-2)), "time" => implode(" ", $temp)]; } unset($date); var_dump($dates);
Output for git.master, git.master_jit, rfc.property-hooks
array(2) { [0]=> array(2) { ["date"]=> string(12) "Jan 12, 2019" ["time"]=> string(8) "08:00 PM" } [1]=> array(2) { ["date"]=> string(12) "Feb 14, 2019" ["time"]=> string(8) "06:00 AM" } }

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:
175.26 ms | 406 KiB | 5 Q