My PHP 7 code will not work : <p>To those who have already installed PHP 7, and it works fine when you give PHP 7 code, please check my PHP 7 code and tell me if it works with you, (this code came from a book.) if it does not work then tell me how I could fix it, then if it does work, then tell me what else I have to install or do.
This is the PHP 7 code:</p>

<pre><code>&lt;!DOCTYPE html&gt;
&lt;html&gt;
&lt;head&gt;
&lt;title&gt; Luke Reports | Home &lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;
&lt;?php
$url = 'http://rss.news.yahoo.com/rss/entertainment';
$xml =
simplexml_load_file( $url ) or die( 'Unalble to load data!');
include( 'includes/rss-footer.html');
foreach( $xml-&gt;channel-&gt;item as $item){
echo '&lt;a href="'.item-&gt;link.'"&gt;'.$item-&gt;title.'&lt;/a&gt;';
echo '&lt;br&gt;&lt;small&gt;'.$item-&gt;pubDate.'&lt;/small&gt;&lt;br&gt;';
echo $item-&gt;description.'&lt;hr&gt;';}
include( 'includes/rss-footer.html');
?&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>So I will highly appreciate it if you comment <em>or</em> Answer.</p>

<p>Thanks, Luke </p>
