Semicolon required at end of block
You are required to have a semicolon after the last line in a block, even though the meaning of the statement is unambiguous:
$ php -r 'if (TRUE) { echo "hello\n" }' Parse error: syntax error, unexpected '}', expecting ',' or ';' in Command line code on line 1 $ php -r 'echo "hello\n"' Parse error: syntax error, unexpected $end, expecting ',' or ';' in Command line code on line 1