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)]);