3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $feed = implode(file('http://www.mybank4.com/blog/category/running-your-business/feed/?orderby=rand')); //echo BLOG_PATH.'category/running-your-business/feed/?orderby=rand';die; //echo $feed; die; $xml = simplexml_load_string($feed); $json = json_encode($xml); $array = json_decode($json,TRUE); echo "<pre>",print_r($array);die;
based on 3DTV5
Output for 7.0.20, 7.1.5 - 7.2.0
Warning: file(): php_network_getaddresses: getaddrinfo failed: System error in /in/3nZHA on line 2 Warning: file(http://www.mybank4.com/blog/category/running-your-business/feed/?orderby=rand): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/3nZHA on line 2 Warning: implode(): Argument must be an array in /in/3nZHA on line 2 <pre>1
Output for 5.5.0 - 7.0.9, 7.1.0
Warning: file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/3nZHA on line 2 Warning: file(http://www.mybank4.com/blog/category/running-your-business/feed/?orderby=rand): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/3nZHA on line 2 Warning: implode(): Argument must be an array in /in/3nZHA on line 2 <pre>1