3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $xml = 'https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml'; $xml = simplexml_load_file($xml); foreach ($xml->xpath("//urun/ozellik[@tanim='Kategori']") as $ozellik) { echo $ozellik."<br>"; }
Output for 7.0.4, 7.0.20, 7.1.5 - 7.2.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on boolean in /in/2jfhV:6 Stack trace: #0 {main} thrown in /in/2jfhV on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.0.6, 7.1.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Uncaught Error: Call to a member function xpath() on boolean in /in/2jfhV:6 Stack trace: #0 {main} thrown in /in/2jfhV on line 6
Process exited with code 255.
Output for 5.6.8 - 5.6.17, 5.6.20 - 5.6.28
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Call to a member function xpath() on boolean in /in/2jfhV on line 6
Process exited with code 255.
Output for 5.6.18 - 5.6.19
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Call to a member function xpath() on boolean in /in/2jfhV on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.5.35
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Call to a member function xpath() on a non-object in /in/2jfhV on line 6
Process exited with code 255.
Output for 5.4.15 - 5.4.45, 5.5.33
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Call to a member function xpath() on a non-object in /in/2jfhV on line 6
Process exited with code 255.
Output for 5.3.21 - 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/2jfhV on line 4 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://gist.github.com/anonymous/dfe6b2348bde82fd50f1/raw/f0c17711eb0336f5199f2ef01e875b1806f04e3b/urunler.xml" in /in/2jfhV on line 4 Fatal error: Call to a member function xpath() on a non-object in /in/2jfhV on line 6
Process exited with code 255.