title: PHP Errors because of PHP, Apache version?
body: <p>I have a web page running online with PHP 7.0 and MySQL 5.6 in a cloud provider dedicated. The web works fine (I did it in a text editor of a file manager provided by the cloud provider).</p>
  
  <p>Now, I want to have the web into my Linux computer (I'm using Kubuntu). I have installed Apache2 2.4, PHP 7.0 and MySQL and same code of the online web (just copy and paste). But the problem is that some pieces of code show an error that is not shown in online web, for example:</p>
  
  <pre><code>if ($_SESSION['var'] == true) { .. }
  </code></pre>
  
  <p>I know that is not really correct, but in my online web this works when this session variable doesn't exists. However, in my computer, this code shows an error. I have to change it for:</p>
  
  <pre><code>if (isset($_SESSION['var']) &amp;&amp; $_SESSION['var'] == true) { .. }
  </code></pre>
  
  <p>And the error is resolved. This is not the only case, we also obtain errors about array_pop(), etc. I know that I should fix that but it's a lot of code and I want to find a solution on my computer to skip this errors like the web is skipping right now.</p>
  
  <p>I have tried on my computer to install PHP 7.0 and PHP 7.2 but the errors still appear...</p>
  
  <p>Sorry for my bad English, just trying the best.</p>
  
  <p>Regards.</p>