<s>
PeachPie	B-Language
is	O
an	O
open-source	O
PHP	B-Application
language	I-Application
compiler	O
and	O
runtime	O
for	O
the	O
.NET	B-Application
Framework	I-Application
and	O
.NET	B-Application
.	O
</s>
<s>
It	O
is	O
built	O
on	O
top	O
of	O
the	O
Microsoft	B-Application
Roslyn	I-Application
compiler	O
platform	O
and	O
is	O
based	O
on	O
the	O
first-generation	O
Phalanger	B-Language
project	O
.	O
</s>
<s>
PeachPie	B-Language
compiles	O
source	O
code	O
written	O
in	O
PHP	B-Application
to	O
CIL	O
byte-code	O
.	O
</s>
<s>
PeachPie	B-Language
takes	O
advantage	O
of	O
the	O
JIT	O
compiler	O
component	O
of	O
the	O
.NET	B-Application
Framework	I-Application
in	O
order	O
to	O
handle	O
the	O
beginning	O
of	O
the	O
compilation	O
process	O
.	O
</s>
<s>
Its	O
purpose	O
is	O
not	O
to	O
generate	O
or	O
optimize	O
native	B-Language
code	I-Language
,	O
but	O
rather	O
to	O
compile	O
PHP	B-Application
scripts	I-Application
into	O
.NET	B-Application
assemblies	O
containing	O
CIL	O
code	O
and	O
meta-data	O
.	O
</s>
<s>
In	O
July	O
2017	O
,	O
the	O
project	O
became	O
a	O
member	O
of	O
the	O
.NET	B-Application
Foundation	O
.	O
</s>
<s>
PeachPie	B-Language
's	O
architecture	O
is	O
similar	O
to	O
the	O
Phalanger	B-Language
project	O
,	O
which	O
had	O
originally	O
started	O
as	O
coursework	O
at	O
the	O
Charles	O
University	O
in	O
Prague	O
,	O
Czechia	O
.	O
</s>
<s>
It	O
was	O
implemented	O
on	O
Microsoft	O
's	O
.NET	B-Application
compiler	I-Application
platform	I-Application
called	O
Roslyn	B-Application
,	O
utilizing	O
the	O
Roslyn	B-Application
API	B-Application
.	O
</s>
<s>
Since	O
2016	O
,	O
the	O
Czech	O
company	O
iolevel	O
has	O
been	O
leading	O
the	O
development	O
of	O
PeachPie	B-Language
.	O
</s>
<s>
PeachPie	B-Language
has	O
several	O
advantages	O
over	O
Phalanger	B-Language
,	O
both	O
as	O
a	O
result	O
of	O
the	O
Roslyn	B-Application
API	B-Application
and	O
the	O
reworked	O
architecture	O
of	O
the	O
compiler	O
.	O
</s>
<s>
While	O
Phalanger	B-Language
was	O
only	O
able	O
to	O
target	O
the	O
full	O
.NET	B-Application
Framework	I-Application
,	O
which	O
only	O
ran	O
on	O
Windows	B-Application
,	O
and	O
cross-platform	B-Operating_System
capabilities	O
were	O
achieved	O
by	O
targeting	O
Mono	B-Application
,	O
PeachPie	B-Language
also	O
allows	O
for	O
a	O
compilation	O
to	O
.NET	B-Application
,	O
thus	O
being	O
cross-platform	B-Operating_System
by	O
default	O
.	O
</s>
<s>
The	O
benchmarks	O
published	O
to	O
date	O
point	O
to	O
performance	O
improvements	O
of	O
PeachPie	B-Language
compared	O
to	O
its	O
predecessor	O
.	O
</s>
<s>
The	O
project	O
contains	O
an	O
advanced	O
semantic	O
analysis	O
,	O
which	O
allows	O
the	O
compiler	O
to	O
generate	O
C#	B-Application
-like	O
symbols	O
for	O
enhanced	O
interoperability	O
features	O
.	O
</s>
<s>
There	O
are	O
similarities	O
between	O
PeachPie	B-Language
and	O
Facebook	B-Application
's	O
HHVM	B-Language
compiler	O
,	O
which	O
executes	O
PHP	B-Application
on	O
a	O
specially	O
designed	O
virtual	O
machine	O
.	O
</s>
<s>
However	O
,	O
as	O
Facebook	B-Application
announced	O
in	O
late	O
2017	O
,	O
version	O
3.24	O
of	O
HHVM	B-Language
would	O
be	O
the	O
last	O
release	O
compatible	O
with	O
PHP	B-Application
,	O
as	O
the	O
project	O
would	O
focus	O
exclusively	O
on	O
supporting	O
Facebook	B-Application
's	O
proprietary	O
extension	O
of	O
PHP	B-Application
called	O
Hack	O
.	O
</s>
<s>
This	O
leaves	O
PeachPie	B-Language
as	O
the	O
only	O
project	O
of	O
this	O
kind	O
with	O
the	O
aspiration	O
to	O
be	O
compatible	O
with	O
past	O
and	O
future	O
versions	O
of	O
PHP	B-Application
.	O
</s>
<s>
The	O
project	O
receives	O
considerable	O
support	O
from	O
Microsoft	O
,	O
having	O
been	O
invited	O
to	O
present	O
at	O
the	O
virtual	O
conference	O
.NET	B-Application
Conf	O
and	O
featured	O
on	O
Microsoft	O
's	O
"	O
On	O
.NET	B-Application
"	O
,	O
as	O
well	O
as	O
the	O
.NET	B-Application
Rocks	O
podcast	O
.	O
</s>
<s>
Since	O
July	O
2017	O
,	O
PeachPie	B-Language
has	O
been	O
a	O
member	O
of	O
the	O
.NET	B-Application
Foundation	O
.	O
</s>
<s>
In	O
December	O
2018	O
,	O
iolevel	O
received	O
the	O
European	O
Innovation	O
Council	O
's	O
Horizon2020	O
grant	O
to	O
pursue	O
their	O
work	O
on	O
PeachPie	B-Language
compiler	I-Language
.	O
</s>
<s>
Performance	O
:	O
since	O
the	O
PHP	B-Application
code	O
is	O
compiled	O
to	O
CIL	O
and	O
subsequently	O
executed	O
,	O
rather	O
than	O
interpreted	O
,	O
theoretically	O
this	O
should	O
lead	O
to	O
performance	O
improvements	O
.	O
</s>
<s>
The	O
micro-benchmarks	O
performed	O
by	O
the	O
authors	O
suggest	O
an	O
increased	O
performance	O
over	O
standard	O
PHP	B-Application
in	O
isolated	O
cases	O
and	O
tests	O
have	O
shown	O
that	O
the	O
project	O
is	O
able	O
to	O
run	O
PHP	B-Application
code	O
about	O
twice	O
as	O
fast	O
on	O
Azure	B-Application
.	O
</s>
<s>
Using	O
the	O
TechEmpower	O
plaintext	O
benchmark	O
,	O
it	O
was	O
measured	O
that	O
WordPress	B-Application
running	O
on	O
PeachPie	B-Language
was	O
able	O
to	O
serve	O
305,612	O
requests	O
per	O
second	O
,	O
whereas	O
standard	O
PHP	B-Application
served	O
45,616	O
requests	O
per	O
second	O
.	O
</s>
<s>
PeachPie	B-Language
is	O
also	O
part	O
of	O
the	O
regularly	O
published	O
TechEmpower	O
benchmarking	O
rounds	O
,	O
where	O
,	O
as	O
of	O
2019	O
,	O
PeachPie	B-Language
is	O
faster	O
than	O
any	O
other	O
PHP	B-Application
framework	O
appearing	O
in	O
the	O
benchmark	O
.	O
</s>
<s>
Phalanger	B-Language
had	O
also	O
offered	O
considerable	O
performance	O
benefits	O
over	O
a	O
32-bit	B-Application
Windows	I-Application
version	O
of	O
PHP	B-Application
5.4	O
.	O
</s>
<s>
Interoperability	O
:	O
the	O
project	O
allows	O
users	O
to	O
interoperate	O
between	O
the	O
PHP	B-Application
and	O
.NET	B-Application
languages	O
.	O
</s>
<s>
As	O
a	O
result	O
,	O
unusual	O
operations	O
,	O
such	O
as	O
injecting	O
C#	B-General_Concept
lambdas	I-General_Concept
into	O
a	O
PHP	B-Application
Context	O
or	O
inheriting	O
PHP	B-Application
classes	O
in	O
C#	B-Application
,	O
are	O
possible	O
.	O
</s>
<s>
Therefore	O
,	O
users	O
can	O
utilize	O
PHP	B-Application
libraries	B-Library
in	O
their	O
.NET	B-Application
projects	O
and	O
vice	O
versa	O
.	O
</s>
<s>
Additional	O
security	O
:	O
given	O
that	O
PeachPie	B-Language
compiles	O
all	O
the	O
source	O
code	O
into	O
one	O
DLL	O
file	O
,	O
the	O
applications	O
can	O
be	O
distributed	O
without	O
the	O
original	O
source	O
code	O
.	O
</s>
<s>
The	O
PeachPie	B-Language
project	O
enables	O
entire	O
PHP	B-Application
applications	O
and	O
frameworks	O
to	O
be	O
compiled	O
to	O
the	O
standard	O
.NET	B-Application
DLL	O
format	O
and	O
distributed	O
,	O
for	O
example	O
,	O
as	O
NuGet	B-Application
packages	O
.	O
</s>
<s>
Cross-platform	B-Operating_System
capability	O
:	O
since	O
PeachPie	B-Language
can	O
target	O
.NET	B-Application
,	O
which	O
is	O
compatible	O
with	O
the	O
regular	O
.NET	B-Application
Framework	I-Application
,	O
Xamarin	B-Application
and	O
Mono	B-Application
,	O
and	O
runs	O
on	O
Windows	B-Application
,	O
MacOS	B-Application
and	O
Linux	B-Application
,	O
it	O
allows	O
for	O
PHP	B-Application
applications	O
to	O
be	O
developed	O
for	O
all	O
devices	O
and	O
operating	O
systems	O
capable	O
of	O
running	O
.NET	B-Application
.	O
</s>
<s>
As	O
of	O
2019	O
,	O
officially	O
tested	O
and	O
supported	O
applications	O
include	O
WordPress	B-Application
,	O
MediaWiki	B-Application
,	O
the	O
software	O
that	O
runs	O
the	O
Wikipedia	O
page	O
,	O
and	O
CodeIgniter	B-Language
.	O
</s>
<s>
In	O
addition	O
,	O
a	O
number	O
of	O
other	O
PHP	B-Application
frameworks	O
and	O
programs	O
have	O
been	O
confirmed	O
to	O
work	O
with	O
workarounds	O
by	O
members	O
of	O
the	O
open	O
source	O
community	O
,	O
e.g.	O
</s>
<s>
Laravel	B-Language
,	O
WooCommerce	B-Language
or	O
Magento	B-Application
.	O
</s>
