search
  • Sign In
  • Sign Up
Password reset successful

Follow the proiects vou are interested in andi aet the latestnews about them taster

Home Backend Development PHP PHP7 new features manual Modification of integer processing mechanism

Modification of integer processing mechanism

1. Invalid octal numbers will report a compilation error

Invalid octal numbers (including numbers greater than 7) will report a compilation error. For example, the following code will report an error:

$i = 0781; // 8 is not a valid octal digit!

Old versions of PHP will ignore invalid numbers.

2. Negative displacement positions will generate exceptions

 var_dump(1 >> -1);
 // ArithmeticError: Bit shift by negative number

3. If the left displacement exceeds the number of digits, it will return 0

var_dump(1 << 64); // int(0)

Old version of PHP running results and cpu Architecture matters. For example, x86 will return 1.

4. If the right displacement exceeds, 0 or -1 will be returned.

var_dump(1 >> 64);  // int(0)
var_dump(-1 >> 64); // int(-1)



Hot AI Tools
Undress AI Tool
Undress AI Tool

Undress images for free

AI Clothes Remover
AI Clothes Remover

Online AI tool for removing clothes from photos.

Undresser.AI Undress
Undresser.AI Undress

AI-powered app for creating realistic nude photos

ArtGPT
ArtGPT

AI image generator for creative art from text prompts.

Stock Market GPT
Stock Market GPT

AI powered investment research for smarter decisions

Popular tool
Notepad++7.3.1
Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version
SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1
Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6
Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version
SublimeText3 Mac version

God-level code editing software (SublimeText3)