facebook/phpsh — pull request #25 by davedevelopment (2012-02-14 23:24:05+00:00)
Title: Added check for error string found in PHP5.4RC7

davem@wes:~$ php -v
PHP 5.4.0RC7 (cli) (built: Feb 14 2012 23:15:24)
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2012 Zend Technologies
davem@wes:~$ php -r "return; class Dave {"

Parse error: syntax error, unexpected end of file, expecting function (T_FUNCTION) in Command line code on line 1
davem@wes:~$