In case that you need to know the version of GD library, you can use below function in PHP.
<?php var_dump(gd_info());