3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $itunesRss = 'https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml'; $itunesObj = simplexml_load_file($itunesRss); foreach($itunesObj->entry as $record) { echo 'nzbs looking up '.$record['title'].'<br />'; }
Output for 5.4.15 - 7.1.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/NAqBS on line 4 Warning: simplexml_load_file(https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/NAqBS on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml" in /in/NAqBS on line 4 Notice: Trying to get property of non-object in /in/NAqBS on line 6 Warning: Invalid argument supplied for foreach() in /in/NAqBS on line 6
Output for 5.3.0 - 5.4.14
Warning: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/NAqBS on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml" in /in/NAqBS on line 4 Notice: Trying to get property of non-object in /in/NAqBS on line 6 Warning: Invalid argument supplied for foreach() in /in/NAqBS on line 6
Output for 5.2.1 - 5.2.17
Notice: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/NAqBS on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml" in /in/NAqBS on line 4 Notice: Trying to get property of non-object in /in/NAqBS on line 6 Warning: Invalid argument supplied for foreach() in /in/NAqBS on line 6
Output for 5.1.0 - 5.2.0
Notice: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/NAqBS on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml" in /in/NAqBS on line 4 Warning: Invalid argument supplied for foreach() in /in/NAqBS on line 6
Output for 5.0.0 - 5.0.5
Notice: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/NAqBS on line 4 Notice: simplexml_load_file(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/NAqBS on line 4 Warning: I/O warning : failed to load external entity "https://itunes.apple.com/us/rss/topalbums/limit=10/explicit=true/xml" in /in/NAqBS on line 4 Warning: Invalid argument supplied for foreach() in /in/NAqBS on line 6
Output for 4.4.5 - 4.4.9
Fatal error: Call to undefined function: simplexml_load_file() in /in/NAqBS on line 4
Process exited with code 255.
Output for 4.3.2 - 4.4.4
Fatal error: Call to undefined function: simplexml_load_file() in /in/NAqBS on line 4
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Fatal error: Call to undefined function: simplexml_load_file() in /in/NAqBS on line 4