-----------------------------------
<?php
$4545;
?>

[line=2, start=7, end=11] syntax error, unexpected '4545', expecting 'variable' or '$'

-----------------------------------
<?php
class A {
?>

[line=3, start=14, end=15] syntax error, unfinished class declaration

-----------------------------------
<?php
class A {
$a = new A();
?>

[line=4, start=14, end=15] syntax error, unfinished class declaration

-----------------------------------
<?php
class A {
5
}
?>

[line=4, start=18, end=19] syntax error, unexpected '}'

-----------------------------------
<?php
class A 
?>

[line=3, start=15, end=18] syntax error, unexpected 'EOF', expecting '{'

-----------------------------------
<?php
class A implements I, {}
?>

[line=2, start=28, end=29] syntax error, unexpected '{', expecting 'identifier'

-----------------------------------
<?php
class A extends B, {}
?>

[line=2, start=23, end=24] syntax error, unexpected ',', expecting '{'

-----------------------------------
<?php
class A extends {}
?>

[line=2, start=22, end=23] syntax error, unexpected '{', expecting 'identifier'

-----------------------------------
<?php
interface I extends {}
?>

[line=2, start=26, end=27] syntax error, unexpected '{', expecting 'identifier'

-----------------------------------
<?php
interface I extends R, {}
?>

[line=2, start=29, end=30] syntax error, unexpected '{', expecting 'identifier'

-----------------------------------
<?php
function foo() {
?>

[line=3, start=25, end=28] syntax error, unexpected 'EOF'

-----------------------------------
<?php
function foo() {
$a = 5;
?>

[line=4, start=33, end=36] syntax error, unexpected 'EOF'

-----------------------------------
<?php
function foo(A) {}
?>

[line=2, start=20, end=21] syntax error, unexpected ')', expecting 'variable' or '&'

-----------------------------------
<?php
function foo($a,) {}
?>

[line=2, start=21, end=22] syntax error, unexpected ','

-----------------------------------
<?php
function foo() { $a }
?>

[line=2, start=26, end=27] syntax error, unexpected '}'

