You could get that any number of ways. That doesn't even need to be 3d.
If you used After Effects old, built-in tracker and tracked the position and scale of the little fountain thing (or whatever it is that the text is "next to") and applied that tracking data to a null, then parented your text to that null, it'd look like that.
Or you could use Mocha to do something similar.
Or you could use the camera tracker.
Tutorials to follow here: After Effects Help | Tracking and stabilizing motion