3v4l.org

run code in 300+ PHP versions simultaneously
<?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 7.1.26 - 7.1.33, 7.2.17 - 7.2.25, 7.3.0 - 7.3.12, 7.4.0
Warning: require_once(): open_basedir restriction in effect. File(libGou4uApi.php) is not within the allowed path(s): (/tmp:/in:/etc) in /in/Mi2FT on line 2 Warning: require_once(libGou4uApi.php): failed to open stream: Operation not permitted 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 5.1.0 - 5.1.6, 5.2.0 - 5.2.17, 5.3.0 - 5.3.29, 5.4.0 - 5.4.45, 5.5.0 - 5.5.38, 5.6.0 - 5.6.28, 7.0.0 - 7.0.20, 7.1.0 - 7.1.7
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 - 4.3.11, 4.4.0 - 4.4.9, 5.0.0 - 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

preferences:
204.28 ms | 402 KiB | 246 Q