SlideShare a Scribd company logo
PHP Versions Upgradation -
What's New vs Old Version
PHP's frequent upgrades to patch issues and provide new
features are its biggest advantages. PHP 8.2 is coming. It may
convince everyone to switch to PHP 8. Let's discuss PHP 8.2's
benefits for developers. First, let's review PHP's history.
8.0
Released in November 2020,
PHP 8.0 brought us the best
features yet, which includes:
Union types Match expression Nullsafe operator
Attributes Constructor property promotion
Named arguments
htmlspecialchars
($string,double_encode:
false);
class Number {
public function
__construct(
private int|float
$number
) {}
}
new Number('NaN'); //
TypeError
echo match (8.0) {
'8.0' => "Oh no!",
8.0 => "This is what I
expected",
};
//> This is what I
expected
$country = $session?-
>user?->getAddress()?-
>country;
class PostsController
{
#[Route("/api/posts/{id}",
methods: ["GET"])]
public function get($id) { /* ...
*/ }
}
class Point {
public function __construct(
public float $x = 0.0,
public float $y = 0.0,
public float $z = 0.0,
) {}
}
8.1
Released in November 2021,
PHP 8.1 brought us the best
features yet, which includes:
New in initializers Pure Intersection Types Fibers
Enumerations Readonly Properties
First-class Callable Syntax
$foo = $this->foo(...);
$fn = strlen(...);
class Service
{
private Logger $logger;
public function
__construct(
Logger $logger =
new NullLogger(),
) {
$this->logger =
$logger;
}
}
function
count_and_iterate(Iterator
&Countable $value) {
foreach ($value as
$val) {
echo $val;
}
count($value);
}
$response = $httpClient-
>request('https://example.
com/');
print
json_decode($response-
>getBody()->buffer())
['code'];
enum Status
{
case Draft;
case Published;
case Archived;
}
function acceptStatus(Status
$status) {...}
class BlogData
{
public readonly Status $status;
public function __construct
(Status$status)
{
$this->status = $status;
}
}
8.2
Released in December 2022,
PHP 8.2 brought us the best
features yet, which includes:
Readonly Classes
Redacting The Support For
Sensitive Parameter Values
True, False, and Null as
Standalone Types
Disjunctive Normal Form Types
Constants in Traits
trait Foo
{
public const CONSTANT = 1;
}
class Bar
{
use Foo;
}
var_dump(Bar::CONSTANT); // 1
var_dump(Foo::CONSTANT); // Error
readonly class MyClass
{
public string $myValue,
public int $myOtherValue
public string $myAnotherValue
public int $myYetAnotherValue
}
function passwords(
$publicpassword,
#[SensitiveParameter]
$secretpassword
) {
throw new Exception('Error');
}
passwords('publicpassword',
'secretpassword');
function alwaysFalse(): false
{
return false;
}
// Accepts an object that implements both A and
B,
// OR an object that implements D.
(A&B)|D
// Accepts an object that implements C,
// OR a child of X that also implements D,
// OR null.
C|(X&D)|null
// Accepts an object that implements all three
of A, B, and D,
// OR an int,
// OR null.
(A&B&D)|int|null
How To Upgrade PHP Version
Check Your Current Version
01
Contact Web Host Provider
02
Create a Site Backup
03
Update WordPress
04
Switch your PHP Version
05
Check For Errors
06
Updates Themes and Plugins
07
Go Live With the Update
08
PHP is improving in syntax simplification
and support for new features with each
new version.
For More Detailed Features of PHP 8.2
You can read the Full blog on
Whats New In PHP 8.2

More Related Content

Similar to PHP Versions Upgradation - What's New vs Old Version.pdf

Giới thiệu PHP 7
Giới thiệu PHP 7Giới thiệu PHP 7
Giới thiệu PHP 7
ZendVN
 
Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5
Stephan Schmidt
 
Dependency Injection and Pimple
Dependency Injection and PimpleDependency Injection and Pimple
Dependency Injection and Pimple
DQNEO
 
Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
Alena Holligan
 
Living With Legacy Code
Living With Legacy CodeLiving With Legacy Code
Living With Legacy Code
Rowan Merewood
 
Hack tutorial
Hack tutorialHack tutorial
Hack tutorial
Wakana Yoshizawa
 
Typed Properties and more: What's coming in PHP 7.4?
Typed Properties and more: What's coming in PHP 7.4?Typed Properties and more: What's coming in PHP 7.4?
Typed Properties and more: What's coming in PHP 7.4?
Nikita Popov
 
php AND MYSQL _ppt.pdf
php AND MYSQL _ppt.pdfphp AND MYSQL _ppt.pdf
php AND MYSQL _ppt.pdf
SVN Polytechnic Kalan Sultanpur UP
 
Php Tutorials for Beginners
Php Tutorials for BeginnersPhp Tutorials for Beginners
Php Tutorials for Beginners
Vineet Kumar Saini
 
Drupal 7 module development
Drupal 7 module developmentDrupal 7 module development
Drupal 7 module developmentAdam Kalsey
 
PHP 7
PHP 7PHP 7
Introducing PHP Latest Updates
Introducing PHP Latest UpdatesIntroducing PHP Latest Updates
Introducing PHP Latest UpdatesIftekhar Eather
 
Intermediate PHP
Intermediate PHPIntermediate PHP
Intermediate PHP
Bradley Holt
 
Entities in drupal 7
Entities in drupal 7Entities in drupal 7
Entities in drupal 7
Zsolt Tasnadi
 
Bring the fun back to java
Bring the fun back to javaBring the fun back to java
Bring the fun back to java
ciklum_ods
 
PHP 5.3
PHP 5.3PHP 5.3
PHP 5.3
Chris Stone
 

Similar to PHP Versions Upgradation - What's New vs Old Version.pdf (20)

Giới thiệu PHP 7
Giới thiệu PHP 7Giới thiệu PHP 7
Giới thiệu PHP 7
 
Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5Go OO! - Real-life Design Patterns in PHP 5
Go OO! - Real-life Design Patterns in PHP 5
 
Dependency Injection and Pimple
Dependency Injection and PimpleDependency Injection and Pimple
Dependency Injection and Pimple
 
The state of DI - DPC12
The state of DI - DPC12The state of DI - DPC12
The state of DI - DPC12
 
Managed Compiler
Managed CompilerManaged Compiler
Managed Compiler
 
Dependency Injection
Dependency InjectionDependency Injection
Dependency Injection
 
Living With Legacy Code
Living With Legacy CodeLiving With Legacy Code
Living With Legacy Code
 
Hack tutorial
Hack tutorialHack tutorial
Hack tutorial
 
Typed Properties and more: What's coming in PHP 7.4?
Typed Properties and more: What's coming in PHP 7.4?Typed Properties and more: What's coming in PHP 7.4?
Typed Properties and more: What's coming in PHP 7.4?
 
php AND MYSQL _ppt.pdf
php AND MYSQL _ppt.pdfphp AND MYSQL _ppt.pdf
php AND MYSQL _ppt.pdf
 
Php Tutorials for Beginners
Php Tutorials for BeginnersPhp Tutorials for Beginners
Php Tutorials for Beginners
 
Drupal 7 module development
Drupal 7 module developmentDrupal 7 module development
Drupal 7 module development
 
PHP 7
PHP 7PHP 7
PHP 7
 
Introducing PHP Latest Updates
Introducing PHP Latest UpdatesIntroducing PHP Latest Updates
Introducing PHP Latest Updates
 
Phactory
PhactoryPhactory
Phactory
 
OOP in PHP
OOP in PHPOOP in PHP
OOP in PHP
 
Intermediate PHP
Intermediate PHPIntermediate PHP
Intermediate PHP
 
Entities in drupal 7
Entities in drupal 7Entities in drupal 7
Entities in drupal 7
 
Bring the fun back to java
Bring the fun back to javaBring the fun back to java
Bring the fun back to java
 
PHP 5.3
PHP 5.3PHP 5.3
PHP 5.3
 

More from WPWeb Infotech

White Label WordPress Development Services.pdf
White Label WordPress Development Services.pdfWhite Label WordPress Development Services.pdf
White Label WordPress Development Services.pdf
WPWeb Infotech
 
Common WordPress errors.pdf
Common WordPress errors.pdfCommon WordPress errors.pdf
Common WordPress errors.pdf
WPWeb Infotech
 
Outsourcing to India Advantage & Best practices.pdf
Outsourcing to India Advantage & Best practices.pdfOutsourcing to India Advantage & Best practices.pdf
Outsourcing to India Advantage & Best practices.pdf
WPWeb Infotech
 
Front End Development Best Practices.pdf
Front End Development Best Practices.pdfFront End Development Best Practices.pdf
Front End Development Best Practices.pdf
WPWeb Infotech
 
Why Upgrade Your WordPress System to PHP 8 PDF.pdf
Why Upgrade Your WordPress System to PHP 8 PDF.pdfWhy Upgrade Your WordPress System to PHP 8 PDF.pdf
Why Upgrade Your WordPress System to PHP 8 PDF.pdf
WPWeb Infotech
 
Technologies PHP Developers Use PDF.pdf
Technologies PHP Developers Use PDF.pdfTechnologies PHP Developers Use PDF.pdf
Technologies PHP Developers Use PDF.pdf
WPWeb Infotech
 
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdfUnlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
WPWeb Infotech
 
What’s New in WordPress 6.3.pdf
What’s New in WordPress 6.3.pdfWhat’s New in WordPress 6.3.pdf
What’s New in WordPress 6.3.pdf
WPWeb Infotech
 
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdfWhy-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
WPWeb Infotech
 
How to Set Up WordPress 301 Redirect PDF.pdf
How to Set Up WordPress 301 Redirect PDF.pdfHow to Set Up WordPress 301 Redirect PDF.pdf
How to Set Up WordPress 301 Redirect PDF.pdf
WPWeb Infotech
 
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdfExploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
WPWeb Infotech
 
Traditional Outsourcing vs White Label Partnership: Navigating the Future
Traditional Outsourcing vs White Label Partnership: Navigating the FutureTraditional Outsourcing vs White Label Partnership: Navigating the Future
Traditional Outsourcing vs White Label Partnership: Navigating the Future
WPWeb Infotech
 
Growing-with-White-Label-Web-Development PDF.pdf
Growing-with-White-Label-Web-Development PDF.pdfGrowing-with-White-Label-Web-Development PDF.pdf
Growing-with-White-Label-Web-Development PDF.pdf
WPWeb Infotech
 
White Label Agency Vs In-house Team PDF.pdf
White Label Agency Vs In-house Team PDF.pdfWhite Label Agency Vs In-house Team PDF.pdf
White Label Agency Vs In-house Team PDF.pdf
WPWeb Infotech
 
Services Offered by White Label Web Development Company -1.pdf
Services Offered by White Label Web Development Company -1.pdfServices Offered by White Label Web Development Company -1.pdf
Services Offered by White Label Web Development Company -1.pdf
WPWeb Infotech
 
How-to-Outsource-PHP-Development
How-to-Outsource-PHP-DevelopmentHow-to-Outsource-PHP-Development
How-to-Outsource-PHP-Development
WPWeb Infotech
 
What-are-Comments-in-WordPress
What-are-Comments-in-WordPress What-are-Comments-in-WordPress
What-are-Comments-in-WordPress
WPWeb Infotech
 
Best Practices for WordPress Themes PDF.pdf
Best Practices for WordPress Themes PDF.pdfBest Practices for WordPress Themes PDF.pdf
Best Practices for WordPress Themes PDF.pdf
WPWeb Infotech
 
How to Create Multivendor Marketplace with WordPress - Pin.pdf
How to Create Multivendor Marketplace with WordPress - Pin.pdfHow to Create Multivendor Marketplace with WordPress - Pin.pdf
How to Create Multivendor Marketplace with WordPress - Pin.pdf
WPWeb Infotech
 
Troubleshooting Common LAMP Errors
Troubleshooting Common LAMP Errors Troubleshooting Common LAMP Errors
Troubleshooting Common LAMP Errors
WPWeb Infotech
 

More from WPWeb Infotech (20)

White Label WordPress Development Services.pdf
White Label WordPress Development Services.pdfWhite Label WordPress Development Services.pdf
White Label WordPress Development Services.pdf
 
Common WordPress errors.pdf
Common WordPress errors.pdfCommon WordPress errors.pdf
Common WordPress errors.pdf
 
Outsourcing to India Advantage & Best practices.pdf
Outsourcing to India Advantage & Best practices.pdfOutsourcing to India Advantage & Best practices.pdf
Outsourcing to India Advantage & Best practices.pdf
 
Front End Development Best Practices.pdf
Front End Development Best Practices.pdfFront End Development Best Practices.pdf
Front End Development Best Practices.pdf
 
Why Upgrade Your WordPress System to PHP 8 PDF.pdf
Why Upgrade Your WordPress System to PHP 8 PDF.pdfWhy Upgrade Your WordPress System to PHP 8 PDF.pdf
Why Upgrade Your WordPress System to PHP 8 PDF.pdf
 
Technologies PHP Developers Use PDF.pdf
Technologies PHP Developers Use PDF.pdfTechnologies PHP Developers Use PDF.pdf
Technologies PHP Developers Use PDF.pdf
 
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdfUnlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
Unlock-the-Advantages-of-Outsourcing-Web-Development PDF.pdf
 
What’s New in WordPress 6.3.pdf
What’s New in WordPress 6.3.pdfWhat’s New in WordPress 6.3.pdf
What’s New in WordPress 6.3.pdf
 
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdfWhy-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
Why-Your-WordPress-Website-Needs-an-XML-Sitemap PDF.pdf
 
How to Set Up WordPress 301 Redirect PDF.pdf
How to Set Up WordPress 301 Redirect PDF.pdfHow to Set Up WordPress 301 Redirect PDF.pdf
How to Set Up WordPress 301 Redirect PDF.pdf
 
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdfExploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
Exploring-the-Advantages-and-Disadvantages-of-PHP PDF.pdf
 
Traditional Outsourcing vs White Label Partnership: Navigating the Future
Traditional Outsourcing vs White Label Partnership: Navigating the FutureTraditional Outsourcing vs White Label Partnership: Navigating the Future
Traditional Outsourcing vs White Label Partnership: Navigating the Future
 
Growing-with-White-Label-Web-Development PDF.pdf
Growing-with-White-Label-Web-Development PDF.pdfGrowing-with-White-Label-Web-Development PDF.pdf
Growing-with-White-Label-Web-Development PDF.pdf
 
White Label Agency Vs In-house Team PDF.pdf
White Label Agency Vs In-house Team PDF.pdfWhite Label Agency Vs In-house Team PDF.pdf
White Label Agency Vs In-house Team PDF.pdf
 
Services Offered by White Label Web Development Company -1.pdf
Services Offered by White Label Web Development Company -1.pdfServices Offered by White Label Web Development Company -1.pdf
Services Offered by White Label Web Development Company -1.pdf
 
How-to-Outsource-PHP-Development
How-to-Outsource-PHP-DevelopmentHow-to-Outsource-PHP-Development
How-to-Outsource-PHP-Development
 
What-are-Comments-in-WordPress
What-are-Comments-in-WordPress What-are-Comments-in-WordPress
What-are-Comments-in-WordPress
 
Best Practices for WordPress Themes PDF.pdf
Best Practices for WordPress Themes PDF.pdfBest Practices for WordPress Themes PDF.pdf
Best Practices for WordPress Themes PDF.pdf
 
How to Create Multivendor Marketplace with WordPress - Pin.pdf
How to Create Multivendor Marketplace with WordPress - Pin.pdfHow to Create Multivendor Marketplace with WordPress - Pin.pdf
How to Create Multivendor Marketplace with WordPress - Pin.pdf
 
Troubleshooting Common LAMP Errors
Troubleshooting Common LAMP Errors Troubleshooting Common LAMP Errors
Troubleshooting Common LAMP Errors
 

Recently uploaded

Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Inflectra
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
Product School
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
Guy Korland
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
KatiaHIMEUR1
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
Frank van Harmelen
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
Alison B. Lowndes
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Product School
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
Alan Dix
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
James Anderson
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
Safe Software
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
Sri Ambati
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Ramesh Iyer
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Thierry Lestable
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
Ana-Maria Mihalceanu
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
DianaGray10
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
OnBoard
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
Elena Simperl
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
Laura Byrne
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
Prayukth K V
 

Recently uploaded (20)

Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered QualitySoftware Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
Software Delivery At the Speed of AI: Inflectra Invests In AI-Powered Quality
 
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
From Daily Decisions to Bottom Line: Connecting Product Work to Revenue by VP...
 
GraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge GraphGraphRAG is All You need? LLM & Knowledge Graph
GraphRAG is All You need? LLM & Knowledge Graph
 
Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !Securing your Kubernetes cluster_ a step-by-step guide to success !
Securing your Kubernetes cluster_ a step-by-step guide to success !
 
Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*Neuro-symbolic is not enough, we need neuro-*semantic*
Neuro-symbolic is not enough, we need neuro-*semantic*
 
Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........Bits & Pixels using AI for Good.........
Bits & Pixels using AI for Good.........
 
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
Unsubscribed: Combat Subscription Fatigue With a Membership Mentality by Head...
 
Epistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI supportEpistemic Interaction - tuning interfaces to provide information for AI support
Epistemic Interaction - tuning interfaces to provide information for AI support
 
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
GDG Cloud Southlake #33: Boule & Rebala: Effective AppSec in SDLC using Deplo...
 
Essentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with ParametersEssentials of Automations: Optimizing FME Workflows with Parameters
Essentials of Automations: Optimizing FME Workflows with Parameters
 
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
GenAISummit 2024 May 28 Sri Ambati Keynote: AGI Belongs to The Community in O...
 
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
Builder.ai Founder Sachin Dev Duggal's Strategic Approach to Create an Innova...
 
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
Empowering NextGen Mobility via Large Action Model Infrastructure (LAMI): pav...
 
FIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdfFIDO Alliance Osaka Seminar: Overview.pdf
FIDO Alliance Osaka Seminar: Overview.pdf
 
Monitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR EventsMonitoring Java Application Security with JDK Tools and JFR Events
Monitoring Java Application Security with JDK Tools and JFR Events
 
UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4UiPath Test Automation using UiPath Test Suite series, part 4
UiPath Test Automation using UiPath Test Suite series, part 4
 
Leading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdfLeading Change strategies and insights for effective change management pdf 1.pdf
Leading Change strategies and insights for effective change management pdf 1.pdf
 
When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...When stars align: studies in data quality, knowledge graphs, and machine lear...
When stars align: studies in data quality, knowledge graphs, and machine lear...
 
The Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and SalesThe Art of the Pitch: WordPress Relationships and Sales
The Art of the Pitch: WordPress Relationships and Sales
 
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 previewState of ICS and IoT Cyber Threat Landscape Report 2024 preview
State of ICS and IoT Cyber Threat Landscape Report 2024 preview
 

PHP Versions Upgradation - What's New vs Old Version.pdf

  • 1. PHP Versions Upgradation - What's New vs Old Version PHP's frequent upgrades to patch issues and provide new features are its biggest advantages. PHP 8.2 is coming. It may convince everyone to switch to PHP 8. Let's discuss PHP 8.2's benefits for developers. First, let's review PHP's history.
  • 2. 8.0 Released in November 2020, PHP 8.0 brought us the best features yet, which includes: Union types Match expression Nullsafe operator Attributes Constructor property promotion Named arguments htmlspecialchars ($string,double_encode: false); class Number { public function __construct( private int|float $number ) {} } new Number('NaN'); // TypeError echo match (8.0) { '8.0' => "Oh no!", 8.0 => "This is what I expected", }; //> This is what I expected $country = $session?- >user?->getAddress()?- >country; class PostsController { #[Route("/api/posts/{id}", methods: ["GET"])] public function get($id) { /* ... */ } } class Point { public function __construct( public float $x = 0.0, public float $y = 0.0, public float $z = 0.0, ) {} }
  • 3. 8.1 Released in November 2021, PHP 8.1 brought us the best features yet, which includes: New in initializers Pure Intersection Types Fibers Enumerations Readonly Properties First-class Callable Syntax $foo = $this->foo(...); $fn = strlen(...); class Service { private Logger $logger; public function __construct( Logger $logger = new NullLogger(), ) { $this->logger = $logger; } } function count_and_iterate(Iterator &Countable $value) { foreach ($value as $val) { echo $val; } count($value); } $response = $httpClient- >request('https://example. com/'); print json_decode($response- >getBody()->buffer()) ['code']; enum Status { case Draft; case Published; case Archived; } function acceptStatus(Status $status) {...} class BlogData { public readonly Status $status; public function __construct (Status$status) { $this->status = $status; } }
  • 4. 8.2 Released in December 2022, PHP 8.2 brought us the best features yet, which includes: Readonly Classes Redacting The Support For Sensitive Parameter Values True, False, and Null as Standalone Types Disjunctive Normal Form Types Constants in Traits trait Foo { public const CONSTANT = 1; } class Bar { use Foo; } var_dump(Bar::CONSTANT); // 1 var_dump(Foo::CONSTANT); // Error readonly class MyClass { public string $myValue, public int $myOtherValue public string $myAnotherValue public int $myYetAnotherValue } function passwords( $publicpassword, #[SensitiveParameter] $secretpassword ) { throw new Exception('Error'); } passwords('publicpassword', 'secretpassword'); function alwaysFalse(): false { return false; } // Accepts an object that implements both A and B, // OR an object that implements D. (A&B)|D // Accepts an object that implements C, // OR a child of X that also implements D, // OR null. C|(X&D)|null // Accepts an object that implements all three of A, B, and D, // OR an int, // OR null. (A&B&D)|int|null
  • 5. How To Upgrade PHP Version Check Your Current Version 01 Contact Web Host Provider 02 Create a Site Backup 03 Update WordPress 04 Switch your PHP Version 05 Check For Errors 06 Updates Themes and Plugins 07 Go Live With the Update 08
  • 6. PHP is improving in syntax simplification and support for new features with each new version. For More Detailed Features of PHP 8.2 You can read the Full blog on Whats New In PHP 8.2