3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $min = PHP_INT_MAX + 1; var_dump($min); $newMin = (int)$min; var_dump($newMin);
based on 4HqRR
Output for 5.3.18 - 7.3.0rc4
float(9.2233720368548E+18) int(-9223372036854775808)