Bash showing error while installing CLI

Hi,
I tried to install CLI with curl way. but it’s showing error.
image
Can anyone please help? not sure what to do.
I searched on google but no relevant results coming.

Anyone, please help me to install CLI? i’m not sure what’s the problem.

I’m not sure the exact reason why that doesn’t work, it appears to be something to do with how that instance of PHP is built. But this should be a reasonable alternative:

php -r "copy('https://platform.sh/cli/installer', 'cli-installer.php');"
php cli-installer.php
php -r "unlink('cli-installer.php');"