Is there any way to run PHP code on any page without creating a module?
Hello Amitesh Kumar!
No, it possible only via service methods of system classes and / or modules.
With the best regards, Leonid