3v4l.org

run code in 500+ PHP versions simultaneously
<?php $array = [ 0 => [ "Contact Info" => 75 ], 1 => [ "Contact Info" => 76 ], 2 => [ "Contact Info" => 77 ], 3 => [ "Contact Info" => 78 ], 4 => [ "Contact Info" => 79 ], 12 => [ "Contact Info" => 596 ], 13 => [ "Contact Info" => 597 ], 14 => [ "Contact Info" => 593 ], 15 => [ "Contact Info" => 595 ], 16 => [ "Contact Info" => 588 ], 17 => [ "Contact Info" => 594 ], 18 => [ "Contact Info" => 591 ], 19 => [ "Contact Info" => 592 ], 20 => [ "Contact Info" => 626 ], 21 => [ "Contact Info" => 590 ], 22 => [ "Address Info" => 85 ], 23 => [ "Address Info" => 86 ], 24 => [ "Address Info" => 87 ], ]; $finalAray = ['contact Info'=> array_column($array,'Contact Info'),'Address Info'=> array_column($array,'Address Info')]; print_r($finalAray);
Output for 8.0.1 - 8.0.30, 8.1.0 - 8.1.34, 8.2.0 - 8.2.30, 8.3.0 - 8.3.30, 8.4.1 - 8.4.21, 8.5.0 - 8.5.7
Array ( [contact Info] => Array ( [0] => 75 [1] => 76 [2] => 77 [3] => 78 [4] => 79 [5] => 596 [6] => 597 [7] => 593 [8] => 595 [9] => 588 [10] => 594 [11] => 591 [12] => 592 [13] => 626 [14] => 590 ) [Address Info] => Array ( [0] => 85 [1] => 86 [2] => 87 ) )

preferences:
92.78 ms | 1207 KiB | 4 Q