World Library  
Flag as Inappropriate
Email this Article

Phalanger (compiler)

Article Id: WHEBN0007407193
Reproduction Date:

Title: Phalanger (compiler)  
Author: World Heritage Encyclopedia
Language: English
Subject: PHP, HipHop for PHP, Hack (programming language), HipHop Virtual Machine, Rapid PHP Editor
Collection: .Net Programming Tools, Php Programming Language
Publisher: World Heritage Encyclopedia

Phalanger (compiler)

Stable release / January 2013
Written in C#, C++/CIL
Operating system Cross-platform
Platform .NET Framework
License Apache License (Apache 2)
Website .net.php-compilerwww

Phalanger is a project which was started at Charles University in Prague and was supported by Microsoft. It compiles source code written in the PHP scripting language into CIL byte-code. It handles the beginning of a compiling process which is completed by the JIT compiler component of the .NET Framework. It does not address native code generation nor optimization. Its purpose is to compile PHP scripts into .NET assemblies, logical units containing CIL code and meta-data.


  • Compatibility 1
  • Performance 2
  • Google Summer of Code 3
  • Jadu sponsorship 4
  • Devsense support & development 5
  • References 6
  • External links 7


Phalanger can run real-world PHP applications, many with minor to no modifications. Examples include WordPress,[1] MediaWiki,[2] phpMyAdmin and phpBB.[3]


One of the main goals of the project is to improve performance of PHP applications. The project web page claims considerable performance benefits over a 32-bit Windows version of PHP.[4]

There was a project[5] at Charles University to re-implement the Phalanger core using the Microsoft Dynamic Language Runtime (DLR), and to develop a Visual Studio integration tool to provide IntelliSense for the PHP language.

Though some features from DLR would slow down the performance of Phalanger, they do claim performance gains by a factor of 6.[6] These features are being integrated into current Phalanger core.

Google Summer of Code

A project involving Phalanger was mentored by the Mono team during the Google Summer of Code program in 2008. During this period Phalanger was ported to the Silverlight 2.0 framework with the goal of making it work on Moonlight as well.[7]

Jadu sponsorship

Early in 2008, UK Content Management vendor Jadu partnered with the Prague-based team to improve communication between .NET and the Phalanger compiler. It is based on duck typing and provides a way for accessing objects from the dynamic PHP world that lack compile-time type information from a statically typed language in a .NET environment in a type-safe way.[8]

In December 2008, Jadu announced that it has made the compiler available to the developer community and in interviews with ITPRO[9] and VNUnet[10] said that the development would help close the skills gap between PHP and .NET.

Devsense support & development

Since 2009, DEVSENSE company leads the development of the project and offers commercial support.[11] DEVSENSE consists of core Phalanger developers and keeps this open-source project alive.

In addition to maintenance and growth of the project, Devsense is providing Visual Studio integration of Phalanger for the community.[12]

Since 2012, DEVSENSE provides support forum[13] for Phalanger (compiler) and related projects for the community.


  1. ^ Phalanger + Wordpress
  2. ^ MediaWiki running on Phalanger
  3. ^ phpBB: Creating communities twice as fast
  4. ^ "Benchmarks". 
  5. ^ "Improvements in the Phalanger Project". 2008-07-01. 
  6. ^ "Phalanger takes advantage of DLR". 2011-08-01. 
  7. ^ "Google Summer of Code Application Information". 2007-04-21. 
  8. ^ Petricek, Tomas (2007-04-30). "Using PHP objects from C# in a type-safe way". 
  9. ^ Har-Even, Benny (2006-12-02). "Jadu gets PHP and .NET talking". ITPRO. 
  10. ^ Muncaster, Phil (2006-11-28). "Jadu brings PHP and .NET closer together". VNUnet. 
  11. ^ "Devsense offers Phalanger and commercial support". DEVSENSE. 
  12. ^ "Devsense provides Phalanger Tools". DEVSENSE. 
  13. ^ "DEVSENSE support". DEVSENSE. 

External links

  • Phalanger PHP compiler blog
  • Phalanger discussion forum
  • Phalanger commercial support
  • Wiki site for Phalanger PHP compiler
  • Phalanger source control and issue tracker
  • Official Web Page for previous version 1.0
  • eWeek article about Phalanger
  • Microsoft accommodates dynamic languages (article)
  • Channel 9 Phalanger
This article was sourced from Creative Commons Attribution-ShareAlike License; additional terms may apply. World Heritage Encyclopedia content is assembled from numerous content providers, Open Access Publishing, and in compliance with The Fair Access to Science and Technology Research Act (FASTR), Wikimedia Foundation, Inc., Public Library of Science, The Encyclopedia of Life, Open Book Publishers (OBP), PubMed, U.S. National Library of Medicine, National Center for Biotechnology Information, U.S. National Library of Medicine, National Institutes of Health (NIH), U.S. Department of Health & Human Services, and, which sources content from all federal, state, local, tribal, and territorial government publication portals (.gov, .mil, .edu). Funding for and content contributors is made possible from the U.S. Congress, E-Government Act of 2002.
Crowd sourced content that is contributed to World Heritage Encyclopedia is peer reviewed and edited by our editorial staff to ensure quality scholarly research articles.
By using this site, you agree to the Terms of Use and Privacy Policy. World Heritage Encyclopedia™ is a registered trademark of the World Public Library Association, a non-profit organization.

Copyright © World Library Foundation. All rights reserved. eBooks from Project Gutenberg are sponsored by the World Library Foundation,
a 501c(4) Member's Support Non-Profit Organization, and is NOT affiliated with any governmental agency or department.