3v4l.org

run code in 300+ PHP versions simultaneously
<?php $initial_array = Array ( '061716v' => 1, '061610A' => 1, '062433AP' => 1, '063868M' => 2, '059173V' => 3, '061579A' => 3, '062404AP' => 3, '059179V' => 4, '061582A' => 4, '061697V' => 4, '062407AP' => 4 ); $final_array = []; foreach($initial_array as $key=>$val){ $final_array[$val] = isset($final_array[$val]) ? $final_array[$val].','.$key : $key; } print_r($final_array);
Output for git.master, git.master_jit, rfc.property-hooks
Array ( [1] => 061716v,061610A,062433AP [2] => 063868M [3] => 059173V,061579A,062404AP [4] => 059179V,061582A,061697V,062407AP )

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:
167.18 ms | 405 KiB | 5 Q