Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Dot And Bitshift Priority

The dot (concatenation) and bitshift (<< and >>) operators have a distinct priority in PHP

PHP code

<?php
echo 3 . 4 << 1;
?>

Before

68

After

38

PHP version change

This behavior was deprecated in The behavior of unparenthesized expressions containing both ‘.’ and ‘>>’/‘<<’ will change in PHP 8: ‘<<’/‘>>’ will take a higher precedence.

This behavior changed in 8.0.

See Also

Extension

Analyzer

© 2023-2026, Damien Seguy - Exakat