Find Jobs
Hire Freelancers

Javascript to PHP Function

$30-250 USD

Awarded
Posted about 12 years ago

$30-250 USD

Paid on delivery
I require the following function to be changed into PHP if it is possible so that I can generate the same results in PHP that this javascript runs. Code: <script> function FormTypeABTester(u){ var g=16; var h=32; var a=65; var i=90; var j=48; var b=57; var c=58; var d=63; var e=91; var f=94; var t=0; var w=0; var za=0; var z=0; var o=[]; var p=null; var k=[]; var s=[]; var r=[]; var q=[]; for(var m=0;m<10;m++){ [login to view URL](0);[login to view URL](0); } for(var n=0;n<10;n++){ [login to view URL](0);[login to view URL](0);[login to view URL](0); } var x=function(zb){ var ze=[login to view URL] Date().getTime():[login to view URL]; var zc=[login to view URL]:[login to view URL];zc%=128;if((zc>=a&&zc<=i)||zc==h){ t++; } else if(zc>=j&&zc<=b){ w++; } else if(zc>=c&&zc<=d||zc>=e&&zc<=f){ za++; } else z++;o[zc]=ze;if(p){ var zd=ze-p;if(zd>=0&&((zc>=a&&zc<=i)||zc==h))if(zd<400){ s[[login to view URL](zd\/20)]++; } else if(zd<1000){ r[[login to view URL]((zd-400)\/60)]++; } else if(zd<3000)q[[login to view URL]((zd-1000)\/200)]++; } p=ze; }; var y=function(zc){ var ze=[login to view URL] Date().getTime():[login to view URL]; var zd=[login to view URL]:[login to view URL]; var zb=ze-o[zd%128];if(zb>=50&&zb<250)k[[login to view URL]((zb-50)\/20)]++; }; var v=function(zb){ var zd=[login to view URL](Math,zb); var zc=[];[login to view URL](function(ze){ [login to view URL]([login to view URL](ze*64\/(zd||1))); } ); return zc; }; var l=function(){ var zb=[login to view URL](r,q);return v(zb).concat(v(k),[t\/2,w\/2,za\/2,z\/2]); }; this.getData=function(){ return [login to view URL](l()); }; [login to view URL](u,{keyup:[login to view URL](this),keydown:[login to view URL](this) } ); } function startFormTypeABTester(a){ a.ab_tester=new FormTypeABTester(document); } function setFormTypeABTest(a){ a.ab_test_data.value=[login to view URL]();return true; } </script>
Project ID: 1562936

About the project

5 proposals
Remote project
Active 12 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
5 freelancers are bidding on average $62 USD for this job
User Avatar
I am sure I can do this work very easily
$70 USD in 2 days
4.8 (178 reviews)
8.6
8.6
User Avatar
Please check your inbox. Thanks
$60 USD in 1 day
4.9 (105 reviews)
7.1
7.1
User Avatar
Please see PM.
$120 USD in 0 day
5.0 (65 reviews)
6.7
6.7
User Avatar
Hi I have over 10 years of php and javascrip expereince and can get this done for you.
$30 USD in 2 days
5.0 (2 reviews)
2.3
2.3
User Avatar
PLEASE CHECK PMB
$30 USD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of UNITED STATES
Woodburn, United States
0.0
0
Member since Apr 13, 2012

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.