<?php
$s = "test:002005@1111@333333@;10205@2000@666666@;002005@1111@55555@;";
if(preg_match_all('/.*?(?:\d+@){2}(\d+)@;/',$s,$m)) {
        print_r($m[1]);
}
