3v4l.org

run code in 200+ php & hhvm versions
Bugs & Features
<?php $val1 = pow(2, 64); $val2 = $val1 - 1; echo $val1 . PHP_EOL; echo $val2 . PHP_EOL; echo number_format($val1, 0, '', '') . PHP_EOL; echo number_format($val2, 0, '', '') . PHP_EOL;
Output for 5.2.1 - 7.2.0
1.844674407371E+19 1.844674407371E+19 18446744073709551616 18446744073709551616
Output for 4.3.10 - 4.4.9, 5.0.2 - 5.2.0
1.844674407371E+19 1.844674407371E+19 18446744073709552000 18446744073709552000
Output for 4.3.2 - 4.3.9, 5.0.0 - 5.0.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 4 1.844674407371E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 5 1.844674407371E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 6 18446744073709552000PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 7 18446744073709552000PHP_EOL
Output for 4.3.0 - 4.3.1
Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 4 1.844674407371E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 5 1.844674407371E+19PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 6 18446744073709551616PHP_EOL Notice: Use of undefined constant PHP_EOL - assumed 'PHP_EOL' in /in/LXCql on line 7 18446744073709551616PHP_EOL