Which is better - PhantomJS or Selenium with Firefox

Which tool is better for automating web page interaction. There are some blogs stating currently PhantomJS has been discontinued. But some still uses it.