PHP compare php versions December 14, 2011 Pramod T P Leave a comment if(version_compare(phpversion(), '5.2.0', '<')) { echo “PHP 5.2.0 (or greater)'; }