Help, please translate this code to php. Or tell me where did b [h] and analog slice in php come from.

I will be very blogodaryan, thank you in advance for your attention!

var c = 181874,d = 8715824,e = 42841287,f = 8424317,d = 328901,g = 7689,j = 733880,n = 432350,z = 1241412,h = 1191240,l = 124412412,t = (new Date()).valueOf(); c = d / c; j = /(?=\B(?:\d{3})+(?!\d))/g; h = Math.round(Math.random() * (5 - 0) + 0); l = Math.random() * (e - n) + g; z = parseInt(l / c) + ''; b = z.slice(0, 4).replace(/(?=\B(?:\d{2})+(?!\d))/g, b[h]) .replace(/(?=\B(?:\d{1})+(?!\d))/g, b[Math.round(Math.random() * (5 - 0) + 0)]); 

    1 answer 1

    He himself invented, he himself was offended, he did)))) everything is OK).

      function random() { return (float)rand()/(float)getrandmax(); } $b = 'chrome'; $c = 181874; $d = 8715824; $e = 42841287; $f = 8424317; $d = 328901; $g = 7689; $j = 733880; $n = 432350; $z = 1241412; $h = 1191240; $l = 124412412; $t = time(); $c = $d / $c; $j = '/(?=\B(?:\d{3})+(?!\d))/g'; $h = round($this->random() * (5 - 0) + 0); $l = $this->random() * ($e - $n) + $g; $z = intval($l / $c) + ''; $temp = preg_replace('/(?=\B(?:\d{2})+(?!\d))/i', $b[$h], substr($z, 0, 4)); $b = preg_replace('/(?=\B(?:\d{1})+(?!\d))/', $b[round($this->random() * (5 - 0) + 0)], $temp); 
    • And what kind of developers come up with such stupid hashi)))) - Aʀtʋʀ Cʀɘțʋ