3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php echo PHP_INT_MIN . "\n"; var_dump(-9223372036854775808); var_dump(-9223372036854775807 - 1);
based on cgQkY
Output for 7.0.0 - 7.2.0
-9223372036854775808 float(-9.2233720368548E+18) int(-9223372036854775808)
Output for 5.3.21 - 5.6.28
Notice: Use of undefined constant PHP_INT_MIN - assumed 'PHP_INT_MIN' in /in/GXZNX on line 3 PHP_INT_MIN float(-9.2233720368548E+18) int(-9223372036854775808)