In order to invoke the cli command on a server with different php versions by the appropriate php version, one can execute it in the following method :
$ env PATH=""/usr/local/php55/bin:$PATH" php -v
waarbij /usr/local/php55/ The route is to the PHP version on your server
If you run this correctly you will see the php version in the terminal. Below is an example of what this might look like :
PHP 5.5.30 (cli) (built: Oct 9 2015 15:12:26)
Copyright (c) 1997-2015 The PHP Group
Zend Engine v2.5.0, Copyright (c) 1998-2015 Zend Technologies
with the ionCube PHP Loader (enabled) + Intrusion Protection from ioncube24.com (unconfigured) v5.0.17, Copyright (c) 2002-2015, by ionCube Ltd.

Overview Map: Open-Source AI Video & Image Models (January 2026)
Discover ComfyUI: the modular visual AI engine for creative workflows
Secure Headless Architecture with Ionic Vue and a PHP JWT API
Run a Large Language Model (LLM) locally with Ollama
How to Install a Local LLM on Ubuntu 24.10 with LM Studio?