Get Server CPU Type with php

I’m trying to determine the CPU type of the server my PHP is running on. I’m not need the CPU usage.
The determination of the CPU type should work independently of the system (Win/Linux..).
The solutions I found evaluate the /proc/cpuinfo file.
This solution only works for linux systems and then only if the rights for access are available.
Example: PHP Script – Get Server Processor

My approach was to use php function php_uname with parameter ‘m’.

<?php
var_dump(php_uname('m'));
//string(6) "x86_64"

Unfortunately, this solution fails on some host systems.
An answer is then generated there which is identical to the parameter ‘a’.
Example:

'Linux localhost 3.10.0-1160.36.2.el7.x86_64 #1 SMP'

I am thankful for all hints.