3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function name() { $data = file_get_contents('https://graph.facebook.com/nike'); return json_parse($data)->likes; } echo name();
Output for 7.0.0 - 7.0.3, 7.0.5 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ODnFq on line 3 Fatal error: Uncaught Error: Call to undefined function json_parse() in /in/ODnFq:6 Stack trace: #0 /in/ODnFq(9): name() #1 {main} thrown in /in/ODnFq on line 6
Process exited with code 255.
Output for 7.0.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/ODnFq on line 3 Fatal error: Uncaught Error: Call to undefined function json_parse() in /in/ODnFq:6 Stack trace: #0 /in/ODnFq(9): name() #1 {main} thrown in /in/ODnFq on line 6
Process exited with code 255.
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open https://graph.facebook.com/nike (Could not resolve host: graph.facebook.com) in /in/ODnFq on line 3 Fatal error: Call to undefined function json_parse() in /in/ODnFq on line 6
Process exited with code 255.
Output for 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/ODnFq on line 3 Fatal error: Call to undefined function json_parse() in /in/ODnFq on line 6
Process exited with code 255.
Output for 5.4.15 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/ODnFq on line 3 Fatal error: Call to undefined function json_parse() in /in/ODnFq on line 6
Process exited with code 255.
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/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: No such file or directory in /in/ODnFq on line 3 Fatal error: Call to undefined function json_parse() in /in/ODnFq on line 6
Process exited with code 255.
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/ODnFq on line 3 Warning: file_get_contents(https://graph.facebook.com/nike): failed to open stream: No such file or directory in /in/ODnFq on line 3 Fatal error: Call to undefined function json_parse() in /in/ODnFq on line 6
Process exited with code 255.
Output for 4.4.2 - 4.4.9
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in /in/ODnFq 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/ODnFq on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/ODnFq on line 6
Process exited with code 255.