title: Find whether a partiular file is valid PHP file
body: <p>I want to find out whether a particular file is valid PHP file or not?</p>
  
  <p><code>php -l filename</code> only finds our whether it have syntactical errors or not, it is lint.</p>
  
  <p>But I also want to find out, that on execution, it will run without error or not?</p>
  
  <p>I am running on Ubuntu machine.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Actually my problem is I am allowing users to define formulas for some calculations and I have to execute those formulas, but before submission of formulas by users, I want to make sure whether they are correct or not in PHP </p>