3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $keyword="world"; $data = array('CompanyID'=>'88','TopicID'=>'60567'); //定义参数 $data = @http_build_query($data); //把参数转换成URL数据 $aContext = array('http' => array('method' => 'GET', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $data )); $cxContext = stream_context_create($aContext); $sUrl = 'http://www.happay.com/Page/Transport/blogDetail.aspx?'; //此处必须为完整路径 $d = @file_get_contents($sUrl,false,$cxContext); print($d); ?>
Output for 4.3.0 - 4.3.1, 5.0.0 - 5.6.28, hhvm-3.10.0 - 3.12.0, 7.0.0 - 7.1.0
Output for 4.3.2 - 4.4.9

Process exited with code 255.