# Zero-fill right shift.

- Thread: https://externals.io/message/81709
- Original archive: https://news-web.php.net/php.internals/81709
- Started by ben.coutu@zeyos.com on 2015-02-03T13:28:05+00:00
- Messages: 1
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #81709 — ben.coutu@zeyos.com — 2015-02-03T13:28:05+00:00

URL: https://externals.io/message/81709#81709

> > […]

$op1 >>> $op2 is equivalent to ($op1 >> $op2) & (PHP_INT_MAX >> $op2 - 1)

========== Original ==========
From: Leigh <leight@gmail.com>
To: internals@lists.php.net
Date: Tue, 03 Feb 2015 14:24:07 +0100
Subject: [PHP-DEV] Re: Zero-fill right shift.



> This will introduce a T_SHRZF token and corresponding opcode. Targeting PHP 7.

That should have been T_SRZF, and I suppose I would also have to add
">>>=" (T_SRZF_EQUAL) which looks nasty, but should be included for
completeness.
