3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $min = PHP_INT_MAX + 1; if ( (is_float($min) && $min >= PHP_INT_MAX && $min <= PHP_INT_MAX) || (is_string($min) && preg_match('#^\-?[0-9]+$#', $min)) ) { print "is float or string"; $min = (int) $min; } var_dump($min);
based on TjL2G
Output for 5.3.18 - 7.2.0
is float or stringint(-9223372036854775808)