• 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

How to use functions that are declared in snippets in Evolution CMS (Modx) in an external PHP Script?

PHP block shortcut in Visual Studio Code

How do I call Validator from a namespace with an already existing Validator class

Can't remotely connect to MySQL error (13) with PHP script, connecting through CLI works

Handling expired token in Laravel

Adding multiple items to WooCommerce cart at once

Target class controller does not exist - Laravel 8

"properties should not be accessed directly" issue during WooCommerce 3.0 checkout

PHPExcel export HTML table to xlsx

ldap is missing from system when installing adldap2 in laravel

Wordpress how to get the post thumbnail inside a figure tag

Display the default discounted price and percentage on Woocommerce products

how to loop through json response data using ajax jquery?

PHP Deprecated issue when running artisan command

XAMPP keeps showing Dashboard/Welcome Page instead of the Configuration Page

About Contact Privacy policy Terms and conditions