3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $doubles = array( -9223372036854775808, -9223372036854775809, -9223372036854775818, -9223372036854775908, -9223372036854776808, ); foreach ($doubles as $d) { $l = (int)$d; var_dump($l); }
Output for 5.6.30, hhvm-3.18.5 - 3.22.0, 7.0.30 - 7.2.8
int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854775808) int(-9223372036854775808)