3v4l.org

run code in 500+ PHP versions simultaneously
<?php $res_events = "|2,20171021|1,20171007|2,20171007|1,20171028|2,20171014|1,20171014|2,20171028|1,20171021|"; $arr = explode("|", $res_events); Sort($arr); // Remove one of the two empty values in array Unset($arr[0]); // Implode and add last "|" $new =implode("|", $arr)."|"; Echo $new;
Output for git.master, git.master_jit, rfc.property-hooks
|1,20171007|1,20171014|1,20171021|1,20171028|2,20171007|2,20171014|2,20171021|2,20171028|

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:
100.53 ms | 1691 KiB | 4 Q