3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo PHP_INT_MAX,'<BR>'; var_dump( (int) 0xffffffffffffffff ); echo pow(2,63) - pow(2,64);
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.1.0
9223372036854775807<BR>int(0) -9.2233720368548E+18
Output for 4.3.6 - 4.3.11, 5.0.0 - 5.0.1, 5.0.3 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/E4Ph2 on line 2 PHP_INT_MAX<BR>int(0) -9.2233720368548E+18
Output for 5.0.2
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/E4Ph2 on line 2 PHP_INT_MAX<BR>int(9223372036854775807) -9.2233720368548E+18
Output for 4.3.0 - 4.3.5
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/E4Ph2 on line 2 PHP_INT_MAX<BR>int(0) -2.7670116110564E+19