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.

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.

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

Last updated: September 19, 2023

Relevant to

  • WordPress