- preg_match_all: documentation ( source)
- var_export: documentation ( source)
<?php
$text = <<<TEXT
SU4R
C45G
G3HD
61U14XE7AR23 914K16W471LV V6SQ5V16LG91 24YL4HW956C3 UZ26J12K615V T741MH4N739W 31ST445G726H 621EH6VW7Q6M 55N629WJ945P 56TX2W6LC949 44DS765CF739 XC262HV1JZ6V 26YD4N1Y71F7 S4M3F1XeDC0D
TEXT;
preg_match_all(
'/\b(?:[a-z\d]{4}(?:[a-z\d]{8})?)\b/i',
$text,
$matches
);
var_export($matches[0]);