Return to the PHP Code and Syntax Checker

Release Notes

  • Version 2.82 - July 13, 2016
    • Made some minor style changes, including darkening the background for better results readability.
  • Version 2.81 - January 25, 2016
  • Version 2.8 - September 2, 2015
    • PHP Syntax Check (php -l) now upgraded to 5.6.10 (previously 5.4.11).
  • Version 2.7 - July 10, 2015
    • Fixed a false positive warning for missing '>' in array declaration of key/value pair when using single quotes (Thanks Tronds).
  • Version 2.62 - July 2, 2015
    • Added a clarification for mismatched number of () {} or [] being unaware of symbol is inside of a string (and shouldn't be counted, but is).
  • Version 2.61 - June 12, 2015
    • Due to recent abuse, API abuser blocking has been automated for frequent redundent calls.
  • Version 2.6 - May 31, 2015
    • Removed a false positive for variable declaration with == error message. (Thanks Ken G.)
    • Redesigned the website on Bootstrap making it fully responsive and mobile-friendly.
    • Added Carbon Ads (developer related ad network) that loads with the page and don't refresh during checks (because that would be annoying).
  • Version 2.51 - January 25, 2015
    • Added a 'clear' button for the box. (Thanks Martin H.)
  • Version 2.5 - January 21, 2015
    • NEW CHECK: Double semi-colons (;;) even if they are on separate lines. (Thanks Michael X.)
  • Version 2.4 - December 17, 2014
    • API now has a built-in delay to no more than 1 request per second.
  • Version 2.33 - December 12, 2014
    • No longer falsely identifies // as a comment start if the first slash is escaped (e.g. \//) as what you may find in a preg_match() expression.
    • API Syntax Check also incorporates this change (since it would interfere with the source code).
  • Version 2.32 - November 4, 2014
    • No longer removes Perl style comments (# comment) — more problems than solutions.
  • Version 2.31 - October 11, 2014
    • Now removes Perl style comments (# comment) lines before parsing. (Thanks Kaley C.)
  • Version 2.3 - October 3, 2014
    • Minor fix (false positive) for array declarations that define an array() as the value. (Thanks René-Pier G.)
    • Minor fix for array declarations that contain an equal sign (=) as part of an HTML string in a value. (Thanks René-Pier G.)
  • Version 2.21 - August 2, 2014
    • Removed a false positive for deprecated split() when using mb_split, str_split, preg_split, chunk_split, and dba_key_split. (Thanks Brent E.)
  • Version 2.2 - July 9, 2014
    • Added a warning for any functions deprecated in PHP 5.x (Thanks Fitra F.)
  • Version 2.11 - June 20, 2014
    • Fixed a XSS vulnerability in Syntax Check errors (Thanks Kevin Z.)
  • Version 2.1 - May 4, 2014
    • Added a new test for using anything but brackets [] after a predefined variable (e.g. $_GET, $_POST, $_SERVER, etc) (Thanks Daniel A.)
  • Version 2.02 - January 30, 2014
    • Improved RegEx detection of arrays used in the array declaration error to reduce false positives (Thanks CoR)
  • Version 2.01 - January 2, 2014
    • Fixed a security bug with displayed output when finding mismatched pairs of symbols (Thanks Dan T.)
  • Version 2.0 - December 2, 2013
    • PHP Syntax Check (php -l) now upgraded to 5.4.11 (previously 5.2.17)
  • Version 1.81 - November 9, 2013
    • Setting a value of null in an arrays no longer triggers a 'no quotations' error (Thanks Александр).
  • Version n/a - October 30, 2013
    • Released the PHP Syntax Check (only) via API: http://phpcodechecker.com/api/
      The PHPCodeChecker unique checks will be added to the API in the future.
  • Version 1.8 - October 23, 2013
    • Fixed a false positive array declaration error because of no space between = and array() (Thanks Scott D and Ethan M).
    • Reduced the false positives for missing semi-colon due to concatenation (Thanks Raymond M).
      It will not trigger when the period is at the end of the line, but will still false positive if the period is on the start of the new line.
    • Non-PHP code is stripped out, much like comments are, prior to checking, reducing false positives.
    • Reset the public error log.
  • Version 1.72 - May 28, 2013
    • Fixed a bug where end of PHP ?> was not respected when comments were stripped (Thanks Johannes).
  • Version 1.71 - April 22, 2013
    • Fixed a bug where http:// was causing problems: falsely identified as a comment (Thanks Ikram H).
  • Version 1.7 - April 12, 2013
    • The PHP Syntax Check points to a particular line number... that line is now displayed for you (Thanks John B).
  • Version 1.6 - January 24, 2013
    • Dramatically reduced false positives for arrays with missing > and badly formed keys or values (Thanks Michael C).
  • Version 1.5 - January 2, 2013
    • Automatically strips out comments before processing, reducing false positives (Thanks Karlo).
  • Version 1.4 - May 21, 2012
    • Improved RegEx for all array detections to ignore the in_array() function (Thanks Andrew H).
  • Version 1.3 - February 20, 2012
    • Improved RegEx for variable declaration error (Thanks David R).
  • Version 1.2 - November 1, 2011
    • Improved RegEx to not generate false positives when a terniary operator is present in variable declaration.
    • Improved RegEx for detecting a single equals sign in a control structure (e.g. if statement)
  • Version 1.11 - July 15, 2011
    • Moved social buttons to display only after analysis of code. Added Google +1 to social sharing.
  • Version 1.1 - July 9, 2011
  • Version 1.0 - July 6, 2011
    • Leaves beta period. Further improvements will be inspired by user feedback.
  • Version 0.6 - June 24, 2011
    • Added check for missing > in array declarations ( e.g. array('name'='value') )
    • Also checks array declarations for text variables or values that are not surrounded by quotes ( e.g. array('name'=>value) )
  • Version 0.5.2 - June 3, 2011
    • Updated If/Elseif/Else check with a better RegEx pattern (reduced false positives)
    • Updated variable declaration RegEx pattern to be boolean aware
  • Version 0.5 - May 31, 2011
    • Check If/Elseif/Else control structures for the use of a single equals (set the value, rather than a comparison operator)
  • Version 0.4 - May 16, 2011
    • Check for mismatched pairs of comments /* */ that can wreak havoc on your sanity
    • Check for incorrect syntax in foreach when defining $key=>$value variables
    • Check for badly formatted PHP declarations (<?php   ?>) - Thanks B.M.
  • Version 0.3 - April 22, 2011
    • Added in a PHP command line syntax check (php -l) to give additional context
  • Version 0.2 - April 10, 2011
    • Built a complex RegEx to check for lines that define a variable but are missing a semicolon (e.g. $variable = "bob")
    • Adapted the RegEx to also look for variables being defined with too many equal signs (e.g. $variable == "bob";)
  • Version 0.1.2 - April 7, 2011
    • Displays the problem code on mismatched opening (, {, or [
  • Version 0.1.1 - March 30, 2011
    • Rewritten to be more modular in the code
    • Check for mismatched (), {}, and []
  • Version 0.1 - March 20, 2011
    • Check for mismatched # of parenthesis (open/closed)