- var_dump: documentation ( source)
- preg_match_all: documentation ( source)
<?php
$LinkRegex = '/(?!(\d+\/\d+)\s*(\d{7,10})\s*)(?<Link>[0-9]{1,2}\/[0-9]{1,2}:?[0-9]?[0-9]?)/';
preg_match_all($LinkRegex, "21/8 664922003 0 0 1 21/1:26,21/1:27,21/1:28", $LinkMatches);
var_dump($LinkMatches);