PHP, 22 2121 17 bytes
for(;;;;a)echo sleep(1); I think the naive approach will be the shortest here. On TIO the output will be visible only when stopping the program of course
EDIT: saved 1 byte by echoing the falsey result of sleep, it works because sleep returns zero instead of false which would have lead to an empty string
EDIT 2: stole the suggestion from this JS answer by triggering a warning instead of an echo