3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
$code= urlencode('<?php echo "waa"; '); $url="http://3v4l.org/"; $params = array("http" => array( "method" => "POST", "content" => "code=".$code )); $ctx = stream_context_create($params); $fp = @fopen($url, "rb", false, $ctx); if (!$fp) { throw new Exception("Problem with $url, $php_errormsg"); } $response = @stream_get_contents($fp); if ($response === false) { throw new Exception("Problem reading data from $url, $php_errormsg"); } print $response;
Output for 5.4.0
Parse error: syntax error, unexpected ''); ' (T_ENCAPSED_AND_WHITESPACE) in IbQsg on line 1
Process exited with code 255.
Output for 5.3.0 - 5.3.10
Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE in IbQsg on line 1
Process exited with code 255.