phpcs adlı üyeden alıntı: mesajı görüntüle
$text = 'test::::deneme
test1::::deneme1
test2::::deneme2
test3::::deneme3
test4::::deneme4';

$lines = explode(PHP_EOL, $text);
$lines = array_map(function ($item) { return explode('::::', $item); }, $lines);
$items = array_map(function ($item) { return $item[0]; }, $lines);

print_r($items);
eski ve artik desteklenmeyen bir PHP surumu kullandiginiz icin o hatayi aliyorsunuz. yukaridaki kod calisir.
çok teşekkür ederim sorunsuz çalıştı.

php sürümümde 7.2.5 eskide sayılmaz