Fix phpdoc
Optimize matchVersion method