J.R. Smith was having fun at the end of Knicks practice yesterday, rifling the ball right-handed from three-quarter court, quarterback-style. He fell short on three attempts but not by much.

“I was a little short but still better than [Tim] Tebow,’’ Smith said jokingly about the Jets quarterback.

Smith knows his football, as he was a star wide receiver for Lakewood High School in New Jersey, where he also played a little quarterback.

Smith’s aim is starting to improve on his jumper. He was a key factor in the Knicks breaking their four-game losing streak versus the Sixers on Sunday, scoring 14 points, draining 3 of 6 on 3-pointers. Smith also had a key offensive rebound and steal in the final two minutes.

It’s the first time in a while the electric Smith, who’s shooting just 40.1 percent, has put together back-to-back solid games.

Sixers coach Doug Collins said Smith’s scoring was the difference to the last meeting. Smith had gone scoreless in Philadelphia Jan. 26 (0-for-8) in the Sixers’ victory. That was in the middle of a very rough patch for the Knicks’ sixth man.