title: Simple way to parse string as a Logical Expression
body: <p>Is there in php something like this? If not, what is the best approach here?</p>
  
  <pre><code>parse_bool("1 &gt; 2"); //returns false
  parse_bool("'a' == 'a'"); // returns true
  </code></pre>