PHP 7 is the most awaited and is a major feature release of PHP programming language. PHP 7 was released on 3rd Dec 2015. This tutorial will teach you the new features of PHP 7 and their usage in a simple and intuitive way.
This tutorial has been prepared for PHP developers from a beginner’s point of view. After completing this tutorial, you will find yourself at a moderate level of expertise in the knowledge of PHP from where you can take yourself to next levels.
We assume that you already know about the older versions of PHP and now you can start learning the new features of PHP 7.
For most of the examples given in this tutorial, you will find an option Try it. Just use this option to execute your PHP-7 programs at the spot and enjoy your learning.
Try the following example using Try it option available at the top right corner of the below sample code box −
<html> <head> <title>Online PHP-7 Script Execution</title> </head> <body> <?php echo "<h1>Hello, PHP-7!</h1>"; ?> </body> </html>