3v4l.org

run code in 500+ PHP versions simultaneously
<?php $myarray = ["2011-06-21", "2011-06-22", "2011-06-22", "2011-06-23", "2011-06-23", "2011-06-24", "2011-06-24", "2011-06-25", "2011-06-25", "2011-06-26"]; $result = []; foreach ($myarray as $k => $v) { $result[$v][] = $k; } var_export(array_filter($result, 'array_key_last'));
Output for rfc.property-hooks, git.master, git.master_jit
array ( '2011-06-22' => array ( 0 => 1, 1 => 2, ), '2011-06-23' => array ( 0 => 3, 1 => 4, ), '2011-06-24' => array ( 0 => 5, 1 => 6, ), '2011-06-25' => array ( 0 => 7, 1 => 8, ), )

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:
86.32 ms | 1296 KiB | 3 Q