3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $arr = array(-1, 1, 4294967297, 12884901889); foreach ($arr as $test) { var_dump($test << 32); var_dump($test << 65); }
based on 7U012
Output for 7.0.0 - 7.2.0
int(-4294967296) int(0) int(4294967296) int(0) int(4294967296) int(0) int(4294967296) int(0)
Output for 5.3.20 - 5.6.28
int(-4294967296) int(-2) int(4294967296) int(2) int(4294967296) int(8589934594) int(4294967296) int(25769803778)