Code
Result

PHP code example: register_tick_function

Register a function for execution on each tick. See documentation.

You can try this function yourself. Just edit the code and on "Run" to see the result.