3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump( 2<<-1, 2<<0, 2<<1, 2<<2, 2<<3 );
based on 7uKdt
Output for 7.0.0 - 7.3.0rc3
Fatal error: Uncaught ArithmeticError: Bit shift by negative number in /in/AWiMf:3 Stack trace: #0 {main} thrown in /in/AWiMf on line 3
Process exited with code 255.
Output for 5.5.0 - 5.6.28
int(0) int(2) int(4) int(8) int(16)