Can you play Ps3 vs Ps4 Minecraft online?

Re
3

I got a Playstation 3 for my birthday and my friend only has a Playstation 4. And we would like to play Minecraft Online, but we don't know how or if it works at all.

PS: Would anyone like to play Minecraft online on Playstation?

an

Yes you can

Re

Yes of course on a common server

Re

And how do you create it?