3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $path='/items/913886267'; $key='XcyLEIoAuUgGSJUDFAs4xWTnV2TKEmvZTZuTtPFr'; $secret='LLI1/E9&zfG-wwKTRd[XGFOAH~u.pnEJ{q(=oyAG'; $deviceId='861087f9e82327cc'; $payload=array(); $payload['deviceId']=$deviceId; $payload['includeRefs']=1; //$payload['session']='3be05bdbec8c3ba50d31e175b5dd3cec.1467179011'; $payload=http_build_query($payload); $sum=md5(md5($secret).md5($path).md5($payload)); echo 'https://www.avito.ru/api/6'.$path.'?checksum='.$sum.'&'.$payload.'&key='.$key; //echo 'Checksum for '.$itemId.' is '.$sum; ?>
based on feo1i
Output for 5.6.0 - 5.6.30, hhvm-3.15.4, 7.0.0 - 7.3.0beta1
https://www.avito.ru/api/6/items/913886267?checksum=00a6fcfbfc94cd87b165dc9535fa7a57&deviceId=861087f9e82327cc&includeRefs=1&key=XcyLEIoAuUgGSJUDFAs4xWTnV2TKEmvZTZuTtPFr