If one uses PHP 7 or HHVM I don't see why it couldn't. There's also the database, but MySQL will definitely do its job unless your website will be attacked.
However, I don't understand how does WordPress come into the discussion. Wordpress is a blogging platform and flarum is a forum platform.