3v4l.org

run code in 300+ PHP versions simultaneously
<?php $arr =Array ( 0 => Array ( 0 => 8147, 1 => 3 ), 1 => Array ( 0 => 8204, 1 => 20 ) ); $match_array = array_column($arr,0); $str = implode(",",$match_array); echo $str;

preferences:
28.44 ms | 405 KiB | 5 Q