3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $doc = new DOMDocument; $doc->loadHTML( file_get_contents('https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0')); $xpath = new DOMXPath( $doc); $div = $xpath->query( '//div[@id="wrapper_left"]')->item(0); echo $div->textContent;
Output for 5.4.15 - 5.6.28, 7.0.0 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7bIIk on line 3 Warning: file_get_contents(https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7bIIk on line 3 Warning: DOMDocument::loadHTML(): Empty string supplied as input in /in/7bIIk on line 3 Notice: Trying to get property of non-object in /in/7bIIk on line 7
Output for hhvm-3.12.0
Warning: Failed to open https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0 (Could not resolve host: volunteer.psu.edu) in /in/7bIIk on line 3 Fatal error: Uncaught TypeError: Argument 1 passed to DOMDocument::_loadHTML() must be an instance of string, bool given in /in/7bIIk:3 Stack trace: #0 /in/7bIIk(3): DOMDocument->loadHTML() #1 {main}
Process exited with code 255.
Output for hhvm-3.10.0
Warning: Failed to open https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0 (Could not resolve host: volunteer.psu.edu) in /in/7bIIk on line 3 Warning: Empty string supplied as input Notice: Cannot access property on non-object in /in/7bIIk on line 7
Output for 5.3.0 - 5.4.14
Warning: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7bIIk on line 3 Warning: file_get_contents(https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0): failed to open stream: No such file or directory in /in/7bIIk on line 3 Warning: DOMDocument::loadHTML(): Empty string supplied as input in /in/7bIIk on line 3 Notice: Trying to get property of non-object in /in/7bIIk on line 7
Output for 5.0.0 - 5.2.17
Notice: file_get_contents(): Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in /in/7bIIk on line 3 Warning: file_get_contents(https://volunteer.psu.edu/redcross/hoursreport/volunteers=members/semester=all/year=2013/min=0): failed to open stream: No such file or directory in /in/7bIIk on line 3 Warning: DOMDocument::loadHTML(): Empty string supplied as input in /in/7bIIk on line 3 Notice: Trying to get property of non-object in /in/7bIIk on line 7
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/7bIIk on line 6
Process exited with code 255.
Output for 4.3.0 - 4.3.1, 4.3.5 - 4.4.1
Parse error: parse error, unexpected T_OBJECT_OPERATOR in /in/7bIIk on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/7bIIk on line 6
Process exited with code 255.