• 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

Prestashop webservice API creating cart rules

Render the content of default_filter.php in Joomla front-end

CodeIgniter 3 is generating a session file on each request, why?

(Cache::lock()) -> get() -- Under what conditions does it return false?

Post Form Data To phpmyadmin Database

Testing subscription renewals on Stripe

Target Laravelista is not instantiable

Warning: sqlite_query() expects parameter 1 to be resource, string given

How to override htaccees file for cache control header

Sort multidimensional array by column value within a column

unable to load your default controller on Codeigniter

If action is on a different page do I use fwrite function

Minimum order amount except for specific shipping method in WooCommerce

Convert date and time to Jalali in Laravel

(Laravel) How to delete multiple models including optional relationships?

About Contact Privacy policy Terms and conditions