3v4l.org

run code in 300+ PHP versions simultaneously
<?php $array =Array ( 869 => 87, 938 => 89, 870 => 127, 871 => 127, 940 => 127, 942 => 123, 947 => 123, 949 => 75 ); $return = array(); foreach ($array as $key => $value) $return[$value][] = $key; var_dump(array_values($return));
Output for git.master, git.master_jit, rfc.property-hooks
array(5) { [0]=> array(1) { [0]=> int(869) } [1]=> array(1) { [0]=> int(938) } [2]=> array(3) { [0]=> int(870) [1]=> int(871) [2]=> int(940) } [3]=> array(2) { [0]=> int(942) [1]=> int(947) } [4]=> array(1) { [0]=> int(949) } }

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:
43.65 ms | 402 KiB | 8 Q