This article is about the scripting language. For other uses, see PHP (disambiguation).

PHP
Imperativefunctionalobject-orientedproceduralreflective
Designed by
Rasmus Lerdorf
Zend Technologies
First appeared
1995; 23 years ago[1]
7.2.1[2] / January 4, 2018; 19 days ago
Implementation language
C (primarily; some components C++)
PHP License (most of Zend engine under Zend Engine License)
.php, .phtml, .php3, .php4, .php5, .php7, .phps, .php-s
Website
Influenced by
PerlCC++JavaTcl[1]
Influenced
·         https://upload.wikimedia.org/wikipedia/commons/thumb/d/df/Wikibooks-logo-en-noslogan.svg/16px-Wikibooks-logo-en-noslogan.svg.png PHP Programming at Wikibooks
PHP is a server-side scripting language designed for development but also used as a general-purpose programming language. Originally created by Rasmus Lerdorf in 1994 the PHP implementations now produced by The PHP Group.[4] PHP originally stood for Personal Home Page,but it now stands for the recursive acronym PHP: Hypertext Preprocessor”    
PHP code may be embedded into HTML code, or it can be used in combination with various web template systems, web content management systems, and web frameworks. PHP code is usually processed by a PHP interpreter implemented as a module in the web server or as a Common Gateway Interface (CGI) executable. The web server combines the results of the interpreted and executed PHP code, which may be any type of data, including images, with the generated web page. PHP code may also be executed with a command-line interface(CLI) and can be used to implement standalone graphical applications.[6]
The standard PHP interpreter, powered by the Zend Engine, is free software released under the PHP License. PHP has been widely ported and can be deployed on most web servers on almost every operating system and platform, free of charge]
The PHP language evolved without a written formal specification or standard until 2014, leaving the canonical PHP interpreter as a de factostandard. Since 2014 work has gone on to create a formal PHP specification.[8]
During the 2010s there have been increased efforts towards standardisation and code sharing in PHP applications by projects such as PHP-FIG in the form of PSR-initiatives as well as Composer dependency manager and the Packagist repository. PHP hosts a diverse array of web frameworks requiring framework-specific knowledge, with Laravel recently emerging as a popular option by incorporating ideas made popular from other competing non-PHP web frameworks, like Ruby on Rails
Contents
  

Early history




PHP 3 and 4


PHP 5

Many high-profile open-source projects ceased to support PHP 4 in new code as of February 5, 2008, because of the GoPHP5 initiative, provided by a consortium of PHP developers promoting the transition from PHP 4 to PHP 5Over time, PHP interpreters became available on most existing 32-bit and 64-bit operating systems, either by building them from the PHP source code, or by using pre-built binaries. For the PHP versions 5.3 and 5.4, the only available Microsoft Windows binary distributions were 32-bit x86 builds, requiring Windows 32-bit compatibility mode while using Internet Information Services (IIS) on a 64-bit Windows platform. PHP version 5.5 made the 64-bit x86-64 builds available for Microsoft Windows.

PHP 6 and Unicode

PHP received mixed reviews due to lacking native Unicode support at the core language level. In 2005, a project headed by Andrei Zmievski was initiated to bring native Unicode support throughout PHP, by embedding the International Components for Unicode (ICU) library, and representing text strings as UTF-16 internally.  Since this would cause major changes both to the internals of the language and to user code, it was planned to release this as version 6.0 of the language, along with other major features then in development
However, a shortage of developers who understood the necessary changes, and performance problems arising from conversion to and from UTF-16, which is rarely used in a web context, led to delays in the project. As a result, a PHP 5.3 release was created in 2009, with many non-Unicode features back-ported from PHP 6, notably namespaces. In March 2010, the project in its current form was officially abandoned, and a PHP 5.4 release was prepared containing most remaining non-Unicode features from PHP 6, such as traits and closure re-binding. Initial hopes were that a new plan would be formed for Unicode integration, but as of 2014 none have been adopted.

PHP 7

During 2014 and 2015, a new major PHP version was developed, which was numbered PHP 7. The numbering of this version involved some debate.While the PHP 6 Unicode experiment had never been released, several articles and book titles referenced the PHP 6 name, which might have caused confusion if a new release were to reuse the name.After a vote, the name PHP 7 was chosen.
The foundation of PHP 7 is a PHP branch that was originally dubbed PHP next generation (phpng). It was authored by Dmitry Stogov, Xinchen Hui and Nikita Popov, and aimed to optimize PHP performance by refactoring the Zend Engine while retaining near-complete language compatibility. As of 14 July 2014, Word Press-based benchmarks, which served as the main benchmark suite for the phpng project, showed an almost 100% increase in performance. Changes from phpng are also expected to make it easier to improve performance in the future, as more compact data structures and other changes are seen as better suited for a successful migration to a just-in-time (JIT) compiler. Because of the significant changes, the reworked Zend Engine is called Zend Engine 3, succeeding Zend Engine 2 used in PHP 5.
Because of major internal changes in phpng, it must receive a new major version number of PHP, rather than a minor PHP 5 release, according to PHP's release process.Major versions of PHP are allowed to break backward-compatibility of code and therefore PHP 7 presented an opportunity for other improvements beyond phpng that require backward-compatibility breaks. In particular, it involved the following changes:
·         Many fatal- or recoverable-level legacy PHP error mechanisms were replaced with modern object-oriented exceptions
·         The syntax for variable dereferencing was reworked to be internally more consistent and complete, allowing the use of the operators ->[](){}, and :: with arbitrary meaningful left-hand-side expressions
·         Support for legacy PHP 4-style constructor methods was deprecated
·         The behavior of the foreach statement was changed to be more predictable
·         Constructors for the few classes built-in to PHP which returned null upon failure were changed to throw an exception instead, for consistency
·         Several unmaintained or deprecated server application programming interfaces (SAPIs) and extensions were removed from the PHP core, most notably the legacy mysql extension[51]
·         The behavior of the list() operator was changed to remove support for stringsSupport for legacy ASP-style PHP code delimiters (<% and %><script language=php> and </script>) was removed An oversight allowing a switch statement to have multiple default clauses was fixed[54]
·         Support for hexadecimal number support in some implicit conversions from strings to number types was removed
·         The left-shift and right-shift operators were changed to behave more consistently across platforms
·         Conversions between integers and floating point numbers were tightened and implemented more consistently across platformsPHP 7 also included new language features. Most notably, it introduces return type declarations for functions, which complement the existing parameter type declarations, and support for the scalar types (integer, float, string, and boolean) in parameter and return type declarations.

Release history

Key
Color
Meaning
Development
Red
Old release
No development
Yellow
Stable release
Security fixes
Green
Stable release
Bug and security fixes
Blue
Future release
New features


Comments

Popular posts from this blog

SAP HANA CERTIFICATION COURES IN NOIDA

Looking for a job in MNC or you wants to be a flawless in developing the JAVA web applications

Learn the latest in PHP techniques & technology and enhance your ability to develop Creative Websites