3v4l.org

run code in 150+ php & hhvm versions
Bugs & Features
<?php echo PHP_INT_MAX . "\n"; echo number_format(PHP_INT_MAX, 0) . "\n"; echo number_format(pow(2,63), 0) . "\n";
Output for 5.2.1 - 7.1.0
9223372036854775807 9,223,372,036,854,775,808 9,223,372,036,854,775,808
Output for 4.4.0 - 4.4.9, 5.0.5 - 5.2.0
9223372036854775807 9,223,372,036,854,776,000 9,223,372,036,854,776,000
Output for 4.3.6 - 4.3.11, 5.0.0 - 5.0.4
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 2 PHP_INT_MAX Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 3 0 9,223,372,036,854,776,000
Output for 4.3.2 - 4.3.5
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 2 PHP_INT_MAX Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 3 0 -9,223,372,036,854,776,000
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 2 PHP_INT_MAX Notice: Use of undefined constant PHP_INT_MAX - assumed 'PHP_INT_MAX' in /in/AfCq2 on line 3 0 -9,223,372,036,854,775,808