Compatibility#

The following section lists the known compatibility status of the compiler, runtime and BCL.

BCL and Extensions#

Language Features Status#

  • PHP 5.4 .. 5.6 Syntax
  • PHP 7.0 .. 7.4 Syntax
  • Referencing .NET assemblies
  • Referencing PHP script libraries
  • Code generation
  • Routine declaration
  • Types declaration
  • Statements compiler
  • Method overrides, Ghost stubs
  • Destructors
  • Constants
  • Native PHP types
  • PHPDoc
  • Value copying
  • Value aliasing
  • Array access for strings
  • Indirect variable access
  • Indirect function call
  • Indirect class access
  • Magic methods
  • Variable arguments (params)
  • Inclusions (include, require, once)
  • Autoload (__autoload, spl)
  • Late static binding
  • varargs ("...")
  • Argument unpacking ("...")
  • Anonymous classes
  • Traits
  • Closures
  • C# Lambda functions
  • Eval
  • Exceptions
  • Implicit casting
  • PHP Generators
  • PHP Stack Trace
  • PHAR support
  • Reflection