3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $c = file_get_contents('http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1'); echo $c; $x = new SimpleXMLElement($c);
Output for 7.0.0 - 7.1.0
Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Connection refused in /in/rlinN on line 2 Fatal error: Uncaught Exception: String could not be parsed as XML in /in/rlinN:4 Stack trace: #0 /in/rlinN(4): SimpleXMLElement->__construct('') #1 {main} thrown in /in/rlinN on line 4
Process exited with code 255.
Output for hhvm-3.12.0
Warning: Failed to open http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1 (Failed to connect to localhost port 8080: Connection refused) in /in/rlinN on line 2 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/rlinN:4 Stack trace: #0 /in/rlinN(4): SimpleXMLElement->__construct() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0

Process exited with code 153.
Output for 5.4.41 - 5.6.28
Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Connection refused in /in/rlinN on line 2 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/rlinN:4 Stack trace: #0 /in/rlinN(4): SimpleXMLElement->__construct('') #1 {main} thrown in /in/rlinN on line 4
Process exited with code 255.
Output for 5.0.3 - 5.4.40
Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Network is unreachable in /in/rlinN on line 2 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/rlinN:4 Stack trace: #0 /in/rlinN(4): SimpleXMLElement->__construct('') #1 {main} thrown in /in/rlinN on line 4
Process exited with code 255.
Output for 5.0.0 - 5.0.2
Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Network is unreachable in /in/rlinN on line 2 Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in /in/rlinN:4 Stack trace: #0 {main} thrown in /in/rlinN on line 4
Process exited with code 255.
Output for 4.3.3 - 4.4.9
Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Network is unreachable in /in/rlinN on line 2 Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/rlinN on line 4
Process exited with code 255.
Output for 4.3.2
Warning: file_get_contents(): php_hostconnect: connect failed in /in/rlinN on line 2 Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1): failed to open stream: Network is unreachable in /in/rlinN on line 2 Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/rlinN on line 4
Process exited with code 255.
Output for 4.3.1
Warning: file_get_contents() [http://www.php.net/function.file-get-contents]: php_hostconnect: connect failed in /in/rlinN on line 2 Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1) [http://www.php.net/function.file-get-contents]: failed to create stream: Network is unreachable in /in/rlinN on line 2 Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/rlinN on line 4
Output for 4.3.0
Warning: file_get_contents() [http://www.php.net/function.file-get-contents]: php_hostconnect: connect failed in /in/rlinN on line 2 Warning: file_get_contents(http://localhost:8080/rest/api/2/issue/VIRENDRAKA-1) [http://www.php.net/function.file-get-contents]: failed to create stream: Connection refused in /in/rlinN on line 2 Fatal error: Cannot instantiate non-existent class: simplexmlelement in /in/rlinN on line 4