3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php function name() { $data = file_get_contents('http://graph.facebook.com/nike'); return json_parse($data)->likes; } echo name();
Output for 7.0.0 - 7.1.0
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/TKde3 on line 3 Warning: file_get_contents(http://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/TKde3 on line 3 Fatal error: Uncaught Error: Call to undefined function json_parse() in /in/TKde3:6 Stack trace: #0 /in/TKde3(9): name() #1 {main} thrown in /in/TKde3 on line 6
Process exited with code 255.
Output for 5.2.6 - 5.6.28
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/TKde3 on line 3 Warning: file_get_contents(http://graph.facebook.com/nike): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/TKde3 on line 3 Fatal error: Call to undefined function json_parse() in /in/TKde3 on line 6
Process exited with code 255.
Output for 5.0.3 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/TKde3 on line 3 Warning: file_get_contents(http://graph.facebook.com/nike): failed to open stream: Connection refused in /in/TKde3 on line 3 Fatal error: Call to undefined function json_parse() in /in/TKde3 on line 6
Process exited with code 255.
Output for 5.0.1 - 5.0.2
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/TKde3 on line 3 Warning: file_get_contents(http://graph.facebook.com/nike): failed to open stream: Success in /in/TKde3 on line 3 Fatal error: Call to undefined function json_parse() in /in/TKde3 on line 6
Process exited with code 255.
Output for 5.0.0
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/TKde3 on line 3 Warning: file_get_contents(http://graph.facebook.com/nike): failed to open stream: Bad file descriptor in /in/TKde3 on line 3 Fatal error: Call to undefined function json_parse() in /in/TKde3 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/TKde3 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/TKde3 on line 6
Process exited with code 255.
Output for 4.3.2 - 4.3.4
Parse error: parse error in /in/TKde3 on line 6
Process exited with code 255.