title: What is the difference between realpath() and is_dir() in php?
body: <p>What is the difference between <code>realpath($path)</code> and <code>is_dir($path)</code>?</p>
  
  <p>I know <code>realpath</code> follows symbolic links, but is there a performance difference between the two?</p>