3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(PHP_INT_MIN); var_dump(-PHP_INT_MAX - 1); var_dump(-9223372036854775808); var_dump(gettype(PHP_INT_MIN)); var_dump(gettype(-PHP_INT_MAX - 1)); var_dump(gettype(-9223372036854775808));
based on W3KuP
Output for 7.0.0 - 7.2.0
int(-9223372036854775808) int(-9223372036854775808) float(-9.2233720368548E+18) string(7) "integer" string(7) "integer" string(6) "double"
Output for 5.3.19 - 5.6.28
Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/vgUMJ on line 3 string(11) "PHP_INT_MIN" int(-9223372036854775808) float(-9.2233720368548E+18) Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/vgUMJ on line 6 string(6) "string" string(7) "integer" string(6) "double"