3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $apikey='89c8421dac1a4009a2fac2396ff91ea3'; $apisecret='43ab0e021c96427f908b3939236557e1'; $nonce=time(); $uri='https://bittrex.com/api/v1.1/market/getopenorders?apikey='.$apikey.'&nonce='.$nonce; $sign=hash_hmac('sha512',$uri,$apisecret); $ch = curl_init($uri); curl_setopt($ch, CURLOPT_HTTPHEADER, array('apisign:'.$sign)); $execResult = curl_exec($ch); $obj = json_decode($execResult); echo ($uri); echo "\n"; echo ($sign);
based on IcHo2
Output for 7.0.0 - 7.3.0alpha1
Fatal error: Uncaught Error: Call to undefined function curl_init() in /in/JPH7m:7 Stack trace: #0 {main} thrown in /in/JPH7m on line 7
Process exited with code 255.
Output for hhvm-3.15.4
https://bittrex.com/api/v1.1/market/getopenorders?apikey=89c8421dac1a4009a2fac2396ff91ea3&nonce=1498660225 38db00dc904b72f8850558a14838a388aa0570f41dec4b2e91de3698d84f7d51b4ba2598bfab4669f3b4140fe1a7fa730e70e13ff336bd0bd6725b57f4079317
Output for 5.6.0 - 5.6.30
Fatal error: Call to undefined function curl_init() in /in/JPH7m on line 7
Process exited with code 255.