The 4th preview release introduces performance improvements, new features, and fixes.
New Features
- emitting and understanding C#-8 like nullability context
- compiler evaluates more expressions, arithmetic, file_exists(), constants, inclusions
- simplified emitted code for functions that return a value or FALSE
- improved type analysis
- nested CLR classes can be used
ASP.NET Core
- PHP warnings and notices logged using
Microsoft.Extensions.Logging.ILoggerFactory
- enabled support for composer autoload-files
- correct resolution of requested script
PHP 8.0 Compatibility
- initial support for PHP 8 attributes
- constructor properties
- union types
- str_contains(), fdiv(), Stringable, ValueError, etc.
- T_* constants
- ReflectionAttribute
see #765 for the progress on PHP 8 compatibility
Fixes
- library functions updated
- library functions signature compatible with PHP
- removed functions and classes that supposed to be internal
- library functions categorized under correct extension names
- PDO fetchAll() fix for FETCH_GROUP
- DateInterval, curl_multi, wordwrap() fixes
- each() correctly copies returned value