true,CURLOPT_TIMEOUT=>3,CURLOPT_CONNECTTIMEOUT=>2]); $r=curl_exec($ch);$code=curl_getinfo($ch,CURLINFO_HTTP_CODE);curl_close($ch); if(!$code)$code=intval(shell_exec("curl -so/dev/null -w '%{http_code}' http://127.0.0.1:3000/ 2>/dev/null")); echo json_encode(['status'=>$code>=200&&$code<400?'ok':'down','code'=>$code,'service'=>'Twenty CRM']);