Hi list, How do we feel about a zero-fill right shift operator?
PHPs current right shift operator preserves signage, but this is not always desirable. I propose the same syntax as JavaScript for this: >>> php -r 'var_dump(-256 >> 8);' int(-1) php -r 'var_dump(-256 >>> 8);' int(16777215) This will introduce a T_SHRZF token and corresponding opcode. Targeting PHP 7. -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php