3v4l.org

run code in 300+ PHP versions simultaneously
<?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 8.3.0 - 8.3.6
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: Uncaught Error: Call to a member function xpath() on false in /in/2jfhV:6 Stack trace: #0 {main} thrown in /in/2jfhV on line 6
Process exited with code 255.
Output for 7.3.16 - 7.3.33, 7.4.0 - 7.4.33, 8.0.0 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18
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: Uncaught Error: Call to a member function xpath() on bool in /in/2jfhV:6 Stack trace: #0 {main} thrown in /in/2jfhV on line 6
Process exited with code 255.
Output for 7.1.20, 7.2.6 - 7.2.33
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: 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.4, 7.0.20, 7.1.5 - 7.1.10, 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.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.

preferences:
150.36 ms | 402 KiB | 184 Q