3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php require_once 'libGou4uApi.php'; $olibGou4uApi = new libGou4uApi(); $oGou4uApi->setApiUrl('http://www.gou4u.com/api/reseller'); $oGou4uApi->setPartnerId('partner ID'); $oGou4uApi->setPartnerKey('partner Key'); // request API $sMsgId = date('YmdHis').str_pad(preg_replace('/^.+\./', '', microtime(true)), 4, '0', STR_PAD_LEFT); $sServiceType = 'test'; $aRequestData = array(); $aResponseData = $oGou4uApi->requestApi($sMsgId, $sServiceType, $aRequestData); echo '<pre>'; var_dump($aResponseData); echo '</pre>';
Output for 5.1.0 - 7.1.0
Warning: require_once(libGou4uApi.php): failed to open stream: No such file or directory in /in/Mi2FT on line 2 Fatal error: require_once(): Failed opening required 'libGou4uApi.php' (include_path='.:') in /in/Mi2FT on line 2
Process exited with code 255.
Output for 4.3.2 - 5.0.5
Warning: main(libGou4uApi.php): failed to open stream: No such file or directory in /in/Mi2FT on line 2 Fatal error: main(): Failed opening required 'libGou4uApi.php' (include_path='.:') in /in/Mi2FT on line 2
Process exited with code 255.
Output for 4.3.0 - 4.3.1
Warning: main(libGou4uApi.php) [http://www.php.net/function.main]: failed to create stream: No such file or directory in /in/Mi2FT on line 2 Fatal error: main() [http://www.php.net/function.main]: Failed opening required 'libGou4uApi.php' (include_path='.:') in /in/Mi2FT on line 2