Skip to content

PHP

PHP is under active development, and runs on all WordPress environments. As new versions are released, WordPress VIP customers are encouraged to prepare their application code for a PHP version update as soon as possible.

Customers are encouraged to follow WordPress.org’s Developer Resources for PHP Coding Standards. Application code can be scanned against the official WordPress Coding Standards, as well as the VIP-Coding-Standards (VIPCS), by following the instructions to install and run PHPCS for WordPress VIP.

The active versus idle PHP processes on an environment can be reviewed in the Insights & Metrics panel of the VIP Dashboard.

Memory limit

By default, PHP’s memory_limit on VIP Platform WordPress environments is set to 768MB. WP_MEMORY_LIMIT is set to 40MB for WordPress single sites, and 64MB for WordPress multisites. If a site’s WP_MEMORY_LIMIT is set to a value higher than memory_limit, WordPress will allow WP_MEMORY_LIMIT to override the PHP memory_limit.

Extensions

A limited group of PHP extensions are enabled by default on all web containers. PHP extensions that are not listed below cannot be enabled.

apcu
bcmath
calendar
Core
ctype
curl
date
dom
exif
filter
ftp
gd
gmagick
gmp
gnupg
hash
iconv
igbinary
intl
json
libxml
mbstring
mcrypt
memcache
memcached
mysqli
mysqlnd
newrelic
openssl
pcntl
pcre
PDO
pdo_mysql
pdo_sqlite
Phar
posix
Reflection
session
shmop
SimpleXML
soap
sockets
sodium
SPL
sqlite3
ssh2
standard
sysvsem
sysvshm
timezonedb
tokenizer
xml
xmlreader
xmlwriter
Zend OPcache
zip
zlib

Last updated: February 02, 2024

Relevant to

  • WordPress