• Categories
    • PHP
    • phpMyAdmin
    • PHPMailer
    • FFMpeg
    • PHPEXcel
    • PHPDoc
    • PHPUnit
    • CakePHP
    • CakePHP 2.0
    • Cake PHP 2.1
    • CakePHP Model
    • Facebook PHP SDK
    • composer-php
    • PHP 7
    • PHP GD
    All Categories
  • About

PHP how to detect if running on arm64 cpu?

phparm64


PHP Snippet 1:

// have been in a situation where MacOS-php says 
// "arm64" while php-in-docker-linux-container-running-on-macos
// says "aarch64"...
$isArm64 = (false!==stripos(php_uname("m"), "aarch64") || false!== stripos(php_uname("m"),"arm64"));

Related Snippets

Limit of log line written to Apache Errorlog from mod php error_log

PHP using str_starts_with for array to exclude same as with wildcard

xdebug 3 not working in ubuntu 20.04 with docker

How to identify whether webp image is static or animated?

Problems getting instance of UploadedFile in Yii2

How can I format this number correctly using PHP?

Php - Sum up the numbers in an array one by one

Yii Ajax Submit button

Reducing authentication calls on external API (Laravel 5.6)

Select option from dropdown menu with PHP and mySql

Can't call javascript alert alertify library from PHP

How to programmatically find public properties of a class from inside one of it's methods

how to create html table in php

how to use extended ASCII instead of unicode in PHP

Create a new line whenever an array value reaches more than 10 characters

About Contact Privacy policy Terms and conditions