Please note that these documents apply to OpenShift Online v2 only (accounts created before August 1st, 2016).
If you are using one of the OpenShift 3 products, please refer to documents available at

PHP Application Hosting

OpenShift Online currently supports PHP 5.3 and 5.4.

PHP is a general-purpose server-side scripting language originally designed to produce dynamic web pages.

Learn more at the PHP home page.

PHP logo

The PHP Cartridge

The php cartridge provides support for deploying PHP applications on OpenShift, using the Apache web server. A Zend Server cartridge is also available. OpenShift-maintained QuickStarts using the php cartridge include CakePHP, WordPress, and Drupal. Popular community-created PHP QuickStarts include Laravel, CodeIgniter, Symfony 2.3.6, and Piwik.