Created
January 4, 2014 12:16
-
-
Save slav123/8254873 to your computer and use it in GitHub Desktop.
check which version PHP is running
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
switch(PHP_INT_SIZE) { | |
case 4: | |
echo '32-bit version of PHP'; | |
break; | |
case 8: | |
echo '64-bit version of PHP'; | |
break; | |
default: | |
echo 'PHP_INT_SIZE is ' . PHP_INT_SIZE; | |
break; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment