3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $x = PHP_INT_MAX; echo $x . PHP_EOL; $x += 1; echo $x . PHP_EOL;
based on T9d4q
Output for 4.4.0 - 4.4.9, 5.0.5 - 7.2.0
9223372036854775807 9.2233720368548E+18
Output for 4.3.10 - 4.3.11, 5.0.2 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/mMHQ0 on line 3 PHP_INT_MAX 1
Output for 4.3.0 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/mMHQ0 on line 3 Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/mMHQ0 on line 4 PHP_INT_MAXPHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/mMHQ0 on line 6 1PHP_EOL