3v4l.org

run code in 300+ PHP versions simultaneously
<?php $results = [ (object)['name' => 'A'], (object)['name' => 'B'], (object)['name' => 'C'] ]; echo implode(',', array_column($results, 'name'));

preferences:
53.55 ms | 405 KiB | 5 Q