3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php $n=(int)sprintf('%u',-1); var_dump($n); var_dump((int)($n)); var_dump((int)($n+0));
Output for 5.2.4 - 7.1.0
int(9223372036854775807) int(9223372036854775807) int(9223372036854775807)
Output for 4.3.0 - 5.2.3
int(4294967295) int(4294967295) int(4294967295)