2๐
โ
As for preformance you can take a look of this question:
- Performance benchmark: PHP Generated content VS. javascript and DOM over AJAX
- Speed of PHP vs JavaScript?
But using Javascript to display data, you have less coupler between Controller and View layers. That way if your Views get more complexity this independence can help you a lot or if you want to make your page more dynamic using AJAX. Theres others options in frontend like Angular.js and Ember.js make you to use MVC in your View layer. The other hand if your view is basic you can use PHP.
๐คJose Rojas
Source:stackexchange.com