3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php var_dump(PHP_INT_MIN); var_dump(gettype(PHP_INT_MIN)); var_dump(gettype(-PHP_INT_MAX - 1)); var_dump(gettype(-9223372036854775808));
based on liGGp
Output for 7.0.0 - 7.2.0
int(-9223372036854775808) 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/W3KuP on line 3 string(11) "PHP_INT_MIN" Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/W3KuP on line 4 string(6) "string" string(7) "integer" string(6) "double"