3v4l.org

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