Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
246 lines (225 sloc) 8.71 KB

Compatibility Table

Features

  • Open and Close tags.
    • Open tag standard <?php
    • Open tag short <?
    • Tag for values <?=
    • Close tag optional
  • Data types
    • Numbers (with longnumbers ;-) )
    • Decimals
    • Booleans
    • Strings
    • References
    • Resources
    • Objects
    • Casting/Conversion
  • Strings
    • Single quote string
    • Double quote string
    • Heredocs
  • Constants
    • define function to define contants
    • text without spaces as constant
    • case insensitive constants (see define function)
    • "magical" constants (__FILE__, __DIR__, ...)
  • Special variables
    • $GLOBALS
  • Arithmetic and Logic
    • Sum, Substract, Multiply, Div and Module.
    • and and or as operations.
    • Operators for binary logic: ~, |, ^, &
  • Loops
    • for in C-style
    • foreach
    • while
    • do...while
  • Conditions
    • if, if...else, if...elseif...else
    • switch
  • Operators for conditions
    • Greater than, Greater or equals than...
    • Less than, Less or equals than...
    • Equals ==, Strong equals ===
  • Spaguetti code
    • Labels
    • goto statement
  • Modular code
    • function definition
    • insensitive name of functions
    • call to functions
    • args by reference
    • default values as params in functions
    • include/require code from other files
  • Error handling
    • launch errors
    • silent warnings/errors (@)
    • launch exceptions (throw)
    • catch exceptions (try...catch)
  • Exit functions
    • return
    • die / exit
  • OOP
    • define class
    • define methods
    • construct
    • destroy (delete)
    • check public, private and/or protected for methods
    • define attributes
    • check public, private and/or protected for attributes
    • define constants
    • inheritance
    • implementations (or interfaces)
    • namespaces
    • traits
  • Functional
    • closures

Main issues / TODO

You can check here the main issues (or incompatibilities) with PHP. At this moment the goal is do the same as PHP 5.5.

Issues

Functions