I created a PHP application (from scratch) using the available instructions here . The /mish/make.shphp version is 5.5.18. After the assembly, the information on the php page confirms the version: 5.5.18.
However, when I register my Openshift application with SSH, it php --versionreturns 5.3.3 with the wrong build date:

I discovered this problem when I tried installing Composer on Openshift . I got an error message when git clicking on Openshift:

I do not know if the problem is with the DYI cartridge or with Openshift. Somebody knows?
Update
, PATH build script (. question)
#!/bin/bash
export PATH=${OPENSHIFT_HOMEDIR}/app-root/runtime/bin/:${PATH}
export COMPOSER_HOME="$OPENSHIFT_DATA_DIR/.composer"
if [ ! -f "$OPENSHIFT_DATA_DIR/composer.phar" ]; then
curl -s https://getcomposer.org/installer | php -- --install-dir=$OPENSHIFT_DATA_DIR
else
php $OPENSHIFT_DATA_DIR/composer.phar self-update
fi
( unset GIT_DIR ; cd $OPENSHIFT_REPO_DIR ; php $OPENSHIFT_DATA_DIR/composer.phar install )