3v4l.org

run code in 300+ PHP versions simultaneously
<?php $url = 'http://www.hackerschool.jp/hack/take22.php'; $data = array( 'pass' => 'take22password', ); $headers = array( 'Cookie: PHPSESSID=hoge;', ); $options = array('http' => array( 'method' => 'POST', 'content' => http_build_query($data), 'header' => implode("\r\n", $headers), )); echo file_get_contents($url, false, stream_context_create($options)); </div>
Output for 5.3.0 - 5.3.28, 5.4.0 - 5.4.25
Parse error: syntax error, unexpected '<' in /in/5hWVQ on line 15
Process exited with code 255.

preferences:
167.82 ms | 1395 KiB | 62 Q