Under given is the PHP language simple code to generate counting, currently its till 1 to 1000 PHP Simple Code…