title: syntax error, unexpected 'version' (T_STRING) in laravel when try to run like localhost/project_name/public
body: <blockquote>
    <p>syntax error, unexpected 'version' (T_STRING)</p>
  </blockquote>
  
  <p>in laravel when try to run like <code>localhost/project_name/public</code> </p>
  
  <p>And same project running throught php artisan serve cmd . So I was not able to understand why this is happening .</p>
  
  <p><img src="https://i.stack.imgur.com/ChR0N.png" alt="Click Here to see the actual error "></p>