3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url ="https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP"; $result = simplexml_load_file($url); foreach($xml->xpath('//product[starts-with(name/text(),"Shirt 12")]') as $product) { echo $result->Name; echo "\n\n"; }
Output for 7.0.5 - 7.1.0
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Notice: Undefined variable: xml in /in/UfVaN on line 6 Fatal error: Uncaught Error: Call to a member function xpath() on null in /in/UfVaN:6 Stack trace: #0 {main} thrown in /in/UfVaN on line 6
Process exited with code 255.
Output for 7.0.0 - 7.0.4
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Notice: Undefined variable: xml in /in/UfVaN on line 6 Fatal error: Uncaught Error: Call to a member function xpath() on unknown in /in/UfVaN:6 Stack trace: #0 {main} thrown in /in/UfVaN on line 6
Process exited with code 255.
Output for 5.6.0 - 5.6.28
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Notice: Undefined variable: xml in /in/UfVaN on line 6 Fatal error: Call to a member function xpath() on null in /in/UfVaN on line 6
Process exited with code 255.
Output for 5.5.0 - 5.5.35
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Notice: Undefined variable: xml in /in/UfVaN on line 6 Fatal error: Call to a member function xpath() on a non-object in /in/UfVaN on line 6
Process exited with code 255.
Output for 5.4.15 - 5.4.45
Warning: simplexml_load_file(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Fatal error: Call to a member function xpath() on a non-object in /in/UfVaN on line 6
Process exited with code 255.
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/UfVaN on line 3 Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Fatal error: Call to a member function xpath() on a non-object in /in/UfVaN on line 6
Process exited with code 255.
Output for 5.2.3 - 5.2.17
Warning: simplexml_load_file(): I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in /in/UfVaN on line 3 Fatal error: Call to a member function xpath() on a non-object in /in/UfVaN on line 6
Process exited with code 255.
Output for 5.1.0 - 5.2.2
<br /> <b>Warning</b>: simplexml_load_file() [<a href='function.simplexml-load-file'>function.simplexml-load-file</a>]: I/O warning : failed to load external entity &quot;https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&amp;source=MY-APP&quot; in <b>/in/UfVaN</b> on line <b>3</b><br /> <br /> <b>Fatal error</b>: Call to a member function xpath() on a non-object in <b>/in/UfVaN</b> on line <b>6</b><br />
Process exited with code 255.
Output for 5.0.0 - 5.0.5
<br /> <b>Warning</b>: I/O warning : failed to load external entity "https://api.litmos.com/v1.svc/teams?apikey=45219F47-E3D4-4D61-B27F-E0A6C06F5AF3&source=MY-APP" in <b>/in/UfVaN</b> on line <b>3</b><br /> <br /> <b>Fatal error</b>: Call to a member function xpath() on a non-object in <b>/in/UfVaN</b> on line <b>6</b><br />
Process exited with code 255.
Output for 4.4.5 - 4.4.9
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/UfVaN</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.2 - 4.4.4
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/UfVaN</b> on line <b>3</b><br />
Process exited with code 255.
Output for 4.3.0 - 4.3.1
<br /> <b>Fatal error</b>: Call to undefined function: simplexml_load_file() in <b>/in/UfVaN</b> on line <b>3</b><br />