Evaluate version conditions with PHP