<?php echo 'a';
Parse error: syntax error, unexpected '<' in \project\file.php(45) : eval()'d code on line 1
\project\file.php(45)
<?php
try {
eval("<?php echo 'asd';");
}
catch (ParseError $e) {
var_dump($e->getMessage());
}
?>
object(ParseError)#1 (7) {
["message":protected]=>
string(51) "syntax error, unexpected '<', expecting end of file"
["string":"Error":private]=>
string(0) ""
["code":protected]=>
int(0)
["file":protected]=>
string(32) "/tmp/test.php(3) : eval()'d code"
["line":protected]=>
int(1)
["trace":"Error":private]=>
array(0) {
}
["previous":"Error":private]=>
NULL
}