Series: How to compile PHP from the source code

How to Compile PHP 8.0 in Debian 10?

On November 26, 2020, the PHP development team released PHP 8.0, PHP 8.0 comes with numerous improvements and new features such as:

  • Union Types
  • Named arguments
  • Match expressions
  • Attributes
  • Constructor Property Promotion
  • Nullsafe Operator
  • Weak Maps
  • Just In Time Compilation
  • and more

How to compile PHP-7.2 on CentOS

PHP

On November 30, 2017 the PHP development team released the PHP 7.2 version, this release added news features, here some of them:

  • New object type: Previously the object statement was used to convert one data type to another one e.g. an array to an sdtClass object and/or vice versa, PHP 7.2 introduces the object data type which can be used to specify the type of parameter and/or for the type of a function return.
  • Extension loading by name: Now it is not necessary to specify the file extension (.so for Unix, .dll for Windows) when loading an extension allowing greater portability in the php configuration file (php.ini).
  • Abstract method overriding: Now an abstract class that inherits from another abstract class can change/overwrite an abstract method of its parent class.

How to compile PHP 7.1 in Ubuntu 16.04

PHPOn December 1, 2016 the PHP development community released version 7.1, which added 12 new features , we mention some of them below:

- Nullable types: Type declarations for parameters and return values can now be marked as nullable by prefixing the type name with a question mark. This signifies that as well as the specified type, NULL can be passed as an argument, or returned as a value, respectively.
- Void functions: The void type functions should not return any value so they should use an empty return or omit it completely, I think that if you omit the return it gives more clarity to the code since it is more consistent with the definition of void, the NULL value is not a valid return value for void functions.
- Symmetric array destructuring : The shorthand array syntax ([]) may now be used to destructure arrays for assignments (including within foreach).

How to compile PHP-7.3 en Debian

On December 6, 2018 the PHP development community released version 7.3, which incorporated new features, here some of them:

  • More Flexible Heredoc and Nowdoc Syntax
  • Array Destructuring supports Reference Assignments
  • instanceof Operator accepts Literals
  • Trailing Commas are allowed in Calls
  • PCRE2 migration
  • Performance of the Multibyte String extension has been significantly improved

How to compile PHP 7.4 on Ubuntu 18.04


On November 28, 2019 the PHP development community released version 7.4, which incorporated new features, of which we mention some:

  • Typed properties
  • Arrow functions
  • Number separators
  • Weak references
  • Support for argon2i and argon2id

Butterfly Builder, a tool to compile PHP

Butterfly Builder is a tool written in BASH that allows to compile PHP from the source code, Butterfly Builder (before pbt) is the evolution of the php-build.sh script allowing greater flexibility and customization in the PHP compilation / installation process.

Compile php-5.6 with fpm support

PHP
On August 28 the PHP development team released version 5.6 which includes innovative features such as: functions with arguments variable using the operator ..., exponentiation operations by making use of the operator **, import functions and constants using the use keyword among others. Today LibreByte will show as compiling php-5.6 with fpm support.

Compile PHP-5.6 with Apache Worker support

A look at PHP-5.6

The Apache Worker implements a hybrid multi-process multi-threaded server allowing to serve a large number of requests per second using fewer resources than Prefork module then is a good option if your site is under heavy load. Other advantages of using Apache Worker is that it allows to create multi-threaded applications making use of pthreads extension

How to compile PHP-5.6 on CentOS 7

Introduction

PHP is a general purpose scripting language that it’s mainly used for web development. Today heavy load web sites such as: Facebook and Wikipedia are powered by PHP. If you are new in the PHP world and you are looking a programming language for your project you will find.

Compile PHP 7 on Debian 8

Introduction

A look at PHP-5.6

On December 3 the PHP community released version 7 of this popular programming language considered to be one of the biggest updates in all history of PHP due the engine (Zend Engine) was refactored in order to achieve best performance.